Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Running "unset path" breaks PATH despite emulation being enabled



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