zsh-workers
 help / color / mirror / code / Atom feed
* Running "unset path" breaks PATH despite emulation being enabled
@ 2017-09-08  8:29 Eric Pruitt
  2017-09-08 11:30 ` Mikael Magnusson
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Pruitt @ 2017-09-08  8:29 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-11  8:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-08  8:29 Running "unset path" breaks PATH despite emulation being enabled Eric Pruitt
2017-09-08 11:30 ` Mikael Magnusson
2017-09-08 16:17   ` Peter Stephenson
2017-09-11  8:58     ` Peter Stephenson
2017-09-09  4:24   ` Eric Pruitt

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).