Hello! On Thu, Jan 29, 2009 at 05:47:53PM +0100, Andreas Schwab wrote: > Thomas Schwinge <tschwi...@gnu.org> writes: > > These three work as expected. But why doesn't the following one? > > > > tho...@dirichlet:~ $ sh -c 'if : 2> /dev/null < NONEXISTING_FILE; then > > :; else echo >&2 OK; fi' > > Works fine here. Are you sure sh is Bash?
Why would sh be something differe... tho...@dirichlet:~ $ ls -l /bin/sh lrwxrwxrwx 1 root root 4 2007-12-25 23:16 /bin/sh -> dash Jeez. That's Ubuntu intrepid 0.5.4-9ubuntu1 version. Unless someone beats me to it, or it is fixed already, I'll take it up with them, sometime later. Andreas: Thanks for pointing out the obvious! Regards, Thomas
signature.asc
Description: Digital signature