From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18082 invoked from network); 8 Dec 2021 16:26:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Dec 2021 16:26:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1638980789; b=nKdjR8q6M/ZEPgB5D/PpcShoTer0js4RFe/+27OlMrxgMGog8vn2SpY9M6jwheqMvU9dbRproR bEmqYqRut6hEZ6ZxX8TLl8VGA4GT/WIxMeEnBOD9/WaswL3nW4HloUz/GMfftlTQ7/vS56LLRU XRjUF8SYQCl1BFHXcTpc+idKKIvpzNsgN0cL+Thhd0YIiAcwiXY2tFuBKrEo+GQbAuVaAVDMO+ 0ggM7cZMIlf2IqX/iWlRKfhgMgkSMzf+aFF25pYQPpFfrGWGOQyS2cyNQISmUlWCDZP++0xYAn NC5RYzAxHUJhcre2AgAQ9zj7SQAsxWV38GcQM44IsZUWwA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout3-smtp.messagingengine.com) smtp.remote-ip=64.147.123.19; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1638980789; bh=PVKDxlRsNlUA+uRmrqhPPKDe2RXxvYfZnEEa0sstYko=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:To:From:Date: References:In-Reply-To:Message-ID:MIME-Version:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=cbESccNFiHhXAnG2hVVqpv7YZnlGCSgvxEO22gVCgSKFlTr/KXRiUKMrRz/5TqRdwuw6jTnlP6 MGtbD6KAyQnvxGaJN5rg/oMeggxDjCQAwvGPAk1xYZ+edkOD3pyfzZHhkwCMSYV60coXBOAZVh zQ+x5yXRUIQ2baaPEOSbwEUx3L0LvjIih1vh4RUOHIBmKtMbCp30oPcx3eplQK274GoHQYr7S7 FSltkKLOSkO09g9qtgpa2z5IreukaqQ5PVfGKH5fEW6kEwNaaN4KHsrHen0ysdz9EJ3aoaXnQV rlyWJy3zYk/yQycFMe+cSq+mnPj9PzJQ75K/Xi/byOXUJA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Subject:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=BlFJGAqpOANafTp5c3R8Fw8AsiuU5RRnXM+q8yMNQLs=; b=UJ11OVsmapTdeDI31r9bzItu1c jRB8J5GvW0GZf3osABY7RuSNnrEy+C4FmUOxHgF4UaIeeEv7Qm8QAwInDvGTlzvzQ3WJPty2d2/ZO gBzqjFd2WVW7h50NzPgWQcbmVZgAehjKxXxZoOQs7JXD2DAWIYKrsgHFs38i/zetxCuBsjmd8TATU b9l6Ogib8qdrCIehMgt4vE2AzWTAfP7WO0vDQiZjnE/gDOL8T1neZHmjvVVXDchBpzZfL0ff9jk3A O8EftHoPx82d4NP49HtCRaEm7o3K1fk+kHEGKGc0kFoKTt2uKG+DVfafVx4418YserynFNxJCdJTp I/vELqDg==; Received: from authenticated user by zero.zsh.org with local id 1muzm0-0007wN-1v; Wed, 08 Dec 2021 16:26:28 +0000 Authentication-Results: zsh.org; iprev=pass (wout3-smtp.messagingengine.com) smtp.remote-ip=64.147.123.19; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:52467) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1muzlR-0007ck-59; Wed, 08 Dec 2021 16:25:54 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id CFE3C3200681 for ; Wed, 8 Dec 2021 11:25:49 -0500 (EST) Received: from imap46 ([10.202.2.96]) by compute5.internal (MEProxy); Wed, 08 Dec 2021 11:25:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type :content-transfer-encoding; s=fm2; bh=BlFJGAqpOANafTp5c3R8Fw8Asi uU5RRnXM+q8yMNQLs=; b=e1ZcK4euCyJBTsyLO2QCseqO8RtsGo/ecmwh3OTMa6 YY1oMGLdV5OczUZQ68xzoHV57CqshAhZ5bvzw0ZU1ymmLM4dAEgb8s5dKEQrxBsb SW15RMnT0XiN3rh16xARxIdv9DTLLwL+PWhfK0tqcLWIkFqGAI+vO/Xj3vBX97Sn 1glmQ5TRdud1/MwAewvEy21uXBhFXzjKvhXrP3EZ+2+dZIGcMqk7M9RgrblM1zym Lve7OkmRrWRHlM5FGowBkeTlItVtrqliKLWcub7mRNUkIIRl9xvtEG6oTOyUMIrH RR5dqCK32Men8wmtv1gscXxGBhgObNcTwPqkEM2P/OzA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=BlFJGAqpOANafTp5c3R8Fw8AsiuU5RRnXM+q8yMNQ Ls=; b=LbC9tse9lvJtT7pJuKR7oJsWnOZV9NDPkCAeJjlxKhN+Tdtuaj1cPi7hc RLCWCNw3T7IR/jqos+G+aDkU9o6MkVZdKynTdim6h40B+QS5cEFNGFHJFUhzeXSU GiHbS88BAb4p4HjLinfBJCJfBEos2eGZud0XCmlr6rHCFPvb+yhETt83Z/2B0PgJ 1TBK0BaIw7v7Hp5AJOVM2RmjQPvlRHZ+zs7zCRA120wonUiGiBuD8mZOpMWgM0Ev Plu/QeiwidTLfsSgaaVC0hNsmrF2muoHqJEVHbpMSJ4+jTkGYRFL0EschZyYDD85 QtdNX0kZOZh55PUv5w99giTCX+QHw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrjeekgdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgfgsehtqh ertderreejnecuhfhrohhmpedfffgrnhhivghlucfuhhgrhhgrfhdfuceougdrshesuggr nhhivghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeefhfekfeevie elleehiefftdekudejledvhfdtjedtgeegvdeuffefleehhfdvgfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurdhssegurghnihgvlhdrsh hhrghhrghfrdhnrghmvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 11A231EE007D; Wed, 8 Dec 2021 11:25:48 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4492-g121c2470aa-fm-20211206.001-g121c2470 Mime-Version: 1.0 Message-Id: <28458d4c-6b74-47eb-80a2-6b6e8c25a551@www.fastmail.com> In-Reply-To: References: Date: Wed, 08 Dec 2021 16:25:00 +0000 From: "Daniel Shahaf" To: zsh-workers@zsh.org Subject: Re: [FEATURE][PATCH] Complete local executables with ./ prefix, if prefix-needed is false Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 49640 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Aaron Schrab wrote on Wed, 08 Dec 2021 01:16 +00:00: > [...] enabling this option would generally be a one-time thing for > a user, and they may not consider this type of case at the time, and > after awhile even forget about it. Furthermore, anyone who has already added =C2=ABzstyle ':=E2=80=A6:*' pr= efix-needed false=C2=BB to their zshrc will silently get the new behaviour when they= upgrade. > I'm not sure how intuitive the new behaviour is. First, other uses of prefix-needed generally hide a tag from the matches unless the common prefix of all matches in that tag is typed; that is, those uses of prefi= x-needed could be simulated with a =C2=ABzstyle -e =E2=80=A6 tag-order =E2=80=A6=C2= =BB setting that conditionally excludes "signals" or "options" depending on $PREFIX et al.. This patch's use does not follow that pattern: if the style is set to true, setting it to false would not cause files in $PWD to be offered as matches immediately. That makes me wonder whether a better approach here would be to complete both executables in $PATH and executables in $PWD, but under separate tags. If we did that, prefix-needed would have its usual semantics in this case. Second, if Alice's $PATH does not include "." and her zstyle settings are such that =C2=ABzstyle -T :=E2=80=A6:executables prefix-needed=C2=BB= is false, why should the implied prefix be "./"? Cheers, Daniel