Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: trying directories in path one by one
- X-seq: zsh-workers 55244
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Mandar Mitra <mandar.mitra@xxxxxxxxx>
- Cc: "Mark J. Reed" <markjreed@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: trying directories in path one by one
- Date: Wed, 4 Nov 2026 19:12:33 +0100
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=MH60DYtnxDAgM0oD3wozdn5dP340qAfIvHGd3LGBy/w=; fh=MoetTPrMooejO5LbvhGsvy12wqOZZiPR3ToVji2SelU=; b=B0AD+VsOH0Z/1OdXQD1KIxEgOdb4s8yaiyV0LkMFUeaHHF9Wqb/UO5g/vaapVtTrj4 r9esYcCvtz/QckW97E85D2ioLkXU1QLy0ga8Gzc5vVOfK6SUa0I+mTMYQN8lYNjfzrxv V3Pi7Cfx7M5zEIid7J8zBbIpFAzpgnF6LrIgD/5lHqc8qqL0uCcEPPFnbmr/tZcC90e5 sBavjy6s19s/t78cprBne7rxZaFvWlKZ0+sy/19sQf2tH0zL5B3T09ndH2WwZUjR32DL HrLw4ii6Bmz5XMWpNLghmwDXEUYzYpL1+aeDXWW7y957tNoYQR1zzhYyLptsSchbwY11 2ZTQ==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1793815966; cv=none; d=google.com; s=arc-20260327; b=b0IpNtA/eB3TCNORXpFQ37veS0b8GhuPY25/pNnQdJEBoN9/z/Ibs1chXTfcIuCkLL diwBxmc04Xdq/gsq0VCL17piFmBdCGJr97463bTFVpc/ctzCZtfL+rIkN9H0IxVSlDY/ 3uJQEiQdZcUB8h95+CVFkV+xQMC3VvjR4jK8hgGE3dxiIFaqxH6RxmgDLoyvlPvZkiFD M9oY/AmSohscjiygJccii0ADMgZXUlxWbphYrP90nQfbZt4Y43ZF3M0OK03VqrJI991S AM7aBoWKVwV0HHPaCUPiqPkzmyMBo2mrEvqNXb9lBjKeP/2ivc3gMeB5HKm43eGU0ow1 IuOA==
- Archived-at: <https://zsh.org/workers/55244>
- In-reply-to: <aus_q3IBXX_aHlwW@gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <austIm10YPnn-uOx@gmail.com> <CAA=-s3wxTn9GRw0ad_YvXNqz25OfVwyDwdZyNQVPR+zEZ=64qg@mail.gmail.com> <aus_q3IBXX_aHlwW@gmail.com>
On Wed, Nov 4, 2026 at 3:46 PM Mandar Mitra <mandar.mitra@xxxxxxxxx> wrote:
>
> Mark J. Reed wrote (Wed, Nov 04, 2026 at 08:54:59AM -0500):
> > What do you mean by "fails"? Zsh will execute the first one that is, well,
> > executable. It doesn't run it and then check the exit code and keep looking
> > through the PATH for another one to try. Perhaps you could be very specific
> > about exactly what you are seeing?
>
> Sorry, my bad. What I'm seeing is that if execve (?) fails on the virtualenv pip with a bad interpreter error, then /bin/pip runs. With 2>&1, I see
>
> zsh: ..../junk/bin/pip: bad interpreter: .... /junk/bin/python: no such file or directory
>
> followed by the output from (I'm guessing) /bin/pip.
>
> I'd like things to stop at the bad interpreter error, so that I don't miss it amidst all the other output.
>
> Is this configurable?
>
> Thanks,
> Mandar.
>
This is a bug which was fixed in workers/55076 [1], but there is not
yet a release which has it.
[1] https://www.zsh.org/mla/workers/2026/msg00923.html
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author