Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Running "unset path" breaks PATH despite emulation being enabled
- X-seq: zsh-workers 41655
- From: Eric Pruitt <eric.pruitt@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: Running "unset path" breaks PATH despite emulation being enabled
- Date: Fri, 8 Sep 2017 21:24:34 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:pgp-key:user-agent; bh=RguhSozydqADMUVg8HBnJ5HbLUbZKiyXTfQuc4MKgtQ=; b=SFnjCXIgqDo0TwY/k9fuzwuzhZp/T0UgpBswb30KD61BqHNbjw3AlkK6EZYE3gGIIR zidVp5Nt1WOUxy0jG/phvJ8o5VnZYuqO7m6Z7PPKotFVis+6ehZ6de0AhY6KcwWe9Snd XY/CDuNqYflE7vqP7E8JFqzToSAuQNQl5VjgQiEj+zQBD+SYcyp2zqmQnnQrvMRGOasb b2YN5wnYoBUxIOrB336z9ji6a+VBWgmO7z8JCM6imfhHBPbIclpk8bA5AGA/REUHf5qT 9g9D2awrVNJDGu1A9Uoudoy+9mFiBukqiy4VXaMgz0MjZCDnNYf8QE2QlfBiFYhvcZXC 7x5g==
- In-reply-to: <CAHYJk3RD6p7PwRaZSUbJSAE0Bi6_2+NKLC3MV+32Lh+PmzsAdA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Pgp-key: https://www.codevat.com/pgp.asc#F8601B5D2511B4C3535232488DDDE2E6053692AB
- References: <20170908082917.v5j4vczoq75vs5lk@sinister.lan.codevat.com> <CAHYJk3RD6p7PwRaZSUbJSAE0Bi6_2+NKLC3MV+32Lh+PmzsAdA@mail.gmail.com>
On Fri, Sep 08, 2017 at 01:30:05PM +0200, Mikael Magnusson wrote:
> This works fine if you start zsh as sh though, ie [...] ARGV0=sh zsh
For the benefit of other people who like myself, don't use actually Z
shell, this is NOT the equivalent of "ARGV0=sh zsh" in many (most?)
other shells, it's describing execve("sh", ["zsh", ...]):
# For POSIX shells, you can use Z shell itself assuming there's not
# a standardized built-in way I overlooked:
$ zsh -c "ARGV0=sh zsh ..."
# For Bash (and some others):
$ (exec -a sh zsh ...)
Eric
Messages sorted by:
Reverse Date,
Date,
Thread,
Author