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?

Andreas.

-- 
Andreas Schwab, SuSE Labs, sch...@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Reply via email to