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-users 22882
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Running "unset path" breaks PATH despite emulation being enabled
- Date: Sun, 10 Sep 2017 09:42:21 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=UEIP1N 9LNj3FZ6C/Ou/wpBhHR7Hg8Xa3MiF+edJAHqQ=; b=UTg8crYiPU9J2WzKpz4K/d jkqpcDJ0nLYnYdgOTCWIkmPMci3xgIOgtfvuS4QaOo9V1y3jf5+Fm3a+W4PkVIBb I38WxtB9NLgKO6Jz/SSKBCmENP/Og+5nNRohsm9bzSML9C7FB/CIsHsGf7gJp9yA 8aRfe4gNQnTmrVlok8yFwwVz3ZQ5CWrH4V5jrJ/ULKNvAiSb2RZVBxnSjubAiOHP lZwDFE9r9LjkU5+1ow5+jKKF/TkTfwYSAM7k+YxoSUyMkwQo6A2ylK0a+uaYyGR+ 0zy8Qf54qckp6OIXmsVIseDXL6NxvYvwk9XfdtPGlIuDtn80rV5VrpWupX+0/fUQ ==
- 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-sender:x-me-sender:x-sasl-enc; s=fm1; bh=UEIP1N 9LNj3FZ6C/Ou/wpBhHR7Hg8Xa3MiF+edJAHqQ=; b=lHsCgN8E7Y8Q/s1NuYp0F3 u/39w01eSqXomatIyEh6XHkcjTwYMFCwD/BdL9WccMRafJ/XoxZyplPLPSCXcXyY bseZ9xAx5hK6YHQDG/Cxz3fFQkkQqS8QGcTg7tM7zvHBCqOtH3sGDkoGcoTXEMBy TRq6GZCOx1xNvqoKh1kIo12wn6fEVsb7uQ/s/USEego5PXPbeQuRjpKLNRDPj9qx JylgUXRMJQU69c6gL0VFEF2f+i+pnBIyA8WlLBZombTgAwXLbSRMwNISSIIVow4/ g0lcEvjD1fvu1Yfv5RTDzdzfOYLxwnXtgZuYPcnfbcrGDQOUjOuXVNxNmDbuGfxA ==
- In-reply-to: <20170909223811.mjaoafbhugrijnyb@sinister.lan.codevat.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20170908082917.v5j4vczoq75vs5lk@sinister.lan.codevat.com> <CAHYJk3RD6p7PwRaZSUbJSAE0Bi6_2+NKLC3MV+32Lh+PmzsAdA@mail.gmail.com> <20170909213806.52qezvyk766loeg3@sinister.lan.codevat.com> <170909152512.ZM9176@torch.brasslantern.com> <20170909223811.mjaoafbhugrijnyb@sinister.lan.codevat.com>
Eric Pruitt wrote on Sat, 09 Sep 2017 15:38 -0700:
> I'm not sure if I misunderstood or didn't clearly explain what I wanted.
> What want is for Z shell to return is the name to the invoked
> interpreter
You can use /proc/$$/exe if your system has it, but there's no
portable solution. In syscall terms, execve() doesn't pass the first
parameter to the child, only the argv array, which can lie about the
command's name.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author