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

Running "unset path" breaks PATH despite emulation being enabled



According and <http://www.zsh.org/mla/users/2015/msg00180.html> and the
manual, Z shell should become roughly POSIX compatible when using
"emulate sh". When using emulation, running 'path=""' does not break
PATH command execution, but running 'unset path' still does which seems
like a bug to me:

    $ zsh -c 'emulate -L sh; path=""; ls /dev/null'
    /dev/null
    $ zsh -c 'emulate -L sh; unset path; ls /dev/null'
    zsh:1: command not found: ls

Eric



Messages sorted by: Reverse Date, Date, Thread, Author