Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
error code for failure to execute
- X-seq: zsh-workers 23004
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: error code for failure to execute
- Date: Fri, 17 Nov 2006 22:47:10 -0500
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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