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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1895 invoked from network); 8 Dec 2021 23:43:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Dec 2021 23:43:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1639007005; b=HAz5L+I2EPaZN0yE3BwyySVJBxqjMLoIe4/VL1NXfWIV9xz2iB3QyuMrIcr0e5Pu5ocE4yhNdA s99IJgIXZajoq0PbhuQ9sZ1zaG05yXCB0cO1MTsSHrOWIBTOm3tflYxc1vz04zlN/JRE9UO9yI VqLwdY57Q/APsXYeBlbrMLuHbiKC6pJOrFdQuTQeeSDOTNhKBd5sJXsNWi/z0SRD3YRTx8Jdv4 FVxrn3KCXRZPxcAEO+ItuizDIkDrD38TCiCmXONfMe+B1ou5nF5InRZ27NZZkpsWxiArByaP8D rqDwAYx035ulXR16rRK5SNqyEbjVK9xuLmSroS+G3a7cNQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f169.google.com) smtp.remote-ip=209.85.219.169; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1639007005; bh=5DE7/1xhZhnePbyfkq0PKvO5FZs4B9U8kUMW6bA7GlI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=KR9ot0yLHTE9Cpo7JSmHjfQoHUcs2K3oIT+M4gYnowvkDnfJcIQn+65CuKwyhK8bOg6cQT1Wth TjqbV1pV2eui2HMMX+N2PvYw8/Iu5Ft0HMZ6IadSCJzS16WYHN5Tezd3haboR0xd1yINGntkXu xKQ+xHg9h8+ACe8LihdOlMGo3HDKbHjmk1eeMYJenjTvwoQQ0AYjI+DOVisd7ESeCrBWyIwmYv e8tvS2SX9skvCfs3MLYKMJwTA9hDaH0jgHfXr2oHtMYMVJOWhkIrEA+ypgdABcGlI0MXSRI1uJ rSaPXM3nNl8anYtoTMLegakf1nO23E0s1mvRwobCiAu30g==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=8k4p2JYhPWJfhJGvOTwC1LM3gSuhArbcdcUfNwTLIMw=; b=G1bGvFjzxn9XNPWogzQaVIAJv7 LrelmaILZbC5vgFQCJyM2ha76PJgFlWwtMLPyk28O1Hwr4AYZ/wSEP/DGU5GpwpjryRdullXQAcM3 L6vKIWV+WTzUGn20URNhdlhHo5A0Np+6uuMDXIU93AypDTF6xVntpw7kp1etXN+PEfrjfYhXaitHq ITWmDdAWV0uJqOMSPTAZ4iIqmESyISRhkhHzueeSS8dAvq0OkHHMhveWUn9kiuhAFsPb+tyHg5cEf u2yNpAPLcy3qcCOFYtFaBENa/Z2DJFd1ZTwAZ3EVSO5FBa4yVs/lUK+7tv3yy8SPy3fBG7fxhJBnL t2PyeVVw==; Received: from authenticated user by zero.zsh.org with local id 1mv6ar-000JqG-93; Wed, 08 Dec 2021 23:43:25 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f169.google.com) smtp.remote-ip=209.85.219.169; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f169.google.com ([209.85.219.169]:38585) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mv6aY-000JXX-7R; Wed, 08 Dec 2021 23:43:07 +0000 Received: by mail-yb1-f169.google.com with SMTP id v64so9766969ybi.5 for ; Wed, 08 Dec 2021 15:43:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8k4p2JYhPWJfhJGvOTwC1LM3gSuhArbcdcUfNwTLIMw=; b=xXxrsrSKn1gshVVBuKnmuPGu7bFe0rKdq16JkWMi7zbhabIpF2/l371zWGH9sNVch8 cyKk4DG1iBzviDwozOmEChvNu2SII/kmSAfbx58C0fKSYlayVhMEhx3ht3g7QxE3MExP RGFC0pp1NBrPsVPQDqrotcTon8Er2Z1G22xd3e68YVsmVTR/eyIMkygnsr+WCDsPMh3/ SqfPkRpdSRO/6XPcIbr3bDIxdUJ67zRY+JIEZe+BIetgeXUsFS1Icwj6hmIV4vaz1Q3A zoU166wK/O7DYrBlIcgEVeONhhjbAK47zZUPQhLorVFFOlmoRKNamACBH9GQuKM9LCWG 1oJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8k4p2JYhPWJfhJGvOTwC1LM3gSuhArbcdcUfNwTLIMw=; b=5ZV7ZppECqxRp1l3Dnejz7EMLpX9F/B/mNICEjA+3oKM7BIb3JEy0D855FuEik2YqV Sz/8BKgn3B9gW2FyM+FlDezpRtRItmfvmK1rA+bUP+CxEGBcnbn/pRcmQKHonANIbziH LSQAlkxDz26EfHl+5vxsRGyeG4nrxkUsjl54pb+QdBO9DHs1pp08zqeXKJ+btu1+1oZ/ oGBI98tbUIZ9NNbhnzFy6CZqcgecDPZZYXz50Xfdqr0JCar6+17lDhO57rTXEN16ognx i8ZTmeb9eWXh0DVVWh/RqiJG3D2MUvTn9Qq3HMPw3Dszu6lExpBA1/xb1M6Tc3JuLjUs PHXw== X-Gm-Message-State: AOAM531Dq25SW7c9UYe/dtEJFhc027Ze5YTMUEZB2kRMrjATNS948L9E /9M8lf6WAWThmB3s9t/iX0i+psM8pMSTltUw3ANW7A== X-Google-Smtp-Source: ABdhPJwtg4f3MWIpK2Jf0216wOO9VARa+xJ/e74uoKSk2IdGVS6p3Y4Y8pY8eMZ5J4/kHWG5wTpLQ12M+W2Q+jr+RgU= X-Received: by 2002:a25:8711:: with SMTP id a17mr2127015ybl.323.1639006984978; Wed, 08 Dec 2021 15:43:04 -0800 (PST) MIME-Version: 1.0 References: <64846-1639005414.316056@22FL.WcIa.VGfN> In-Reply-To: <64846-1639005414.316056@22FL.WcIa.VGfN> From: Bart Schaefer Date: Wed, 8 Dec 2021 15:42:53 -0800 Message-ID: Subject: Re: [FEATURE][PATCH] Complete local executables with ./ prefix, if prefix-needed is false To: Oliver Kiddle Cc: Marlon Richert , Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49644 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: On Wed, Dec 8, 2021 at 3:18 PM Oliver Kiddle wrote: > > This is the type of thing which often can already be achieved with > styles and, where not, a few tweaks may enable it. The nearest example > from my own config involves using the fake style Yeah, I was pretty sure there was a way to get here using the "fake" style but couldn't put my finger on the argument Daniel found to argue against changes to prefix-needed. > The fake style is looked up in _description so a dummy call to it is one > option. The patch below adds that but I'd be interested in any thoughts > on that. Is it going to matter that this happens before command-path is consulted? And before the defs array is passed to _alternative? > path=( $cmdpath:A ) when the command-path style is set. That resolves > only the first of these issues and allows for relative paths in the > command-path style to work as intended, even if that isn't especially > useful. Does that have any unexpected interaction with PATH_DIRS ?