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

error code for failure to execute



Does this make sense?

$ touch /tmp/nonex
$ chmod 0 /tmp/nonex
$ (/tmp/nonex) 2>/dev/null || echo $?
127
$ (/tmp/nonex)
zsh: permission denied: /tmp/nonex
$ echo $?
126
$ (/tmp/nonex) 2>/dev/null
$ echo $?
127
$ 



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