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

Re: POSIX (Was: PATCH: "sh" job control)



On Oct 1,  1:41am, Geoff Wing wrote:
} Subject: POSIX (Was: PATCH: "sh" job control)
}
} On the topic of POSIX:
} % touch asdasd; chmod 755 asdasd
} % ./asdasd ; echo $?
} zsh: exec format error: ./asdasd
} 1	# <-- POSIX says 126
} % ./foobar
} zsh: no such file or directory: ./foobar
} 1	# <-- POSIX says 127

On my RedHat 5.2 system, bash says:

$ ./asdasd ; echo $?
0
$ ./foobar ; echo $?
bash: ./foobar: No such file or directory
126

So I don't think I'm going to complain too loudly about zsh.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



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