Hello! I'm probably only missing something very obvious, but...
tho...@dirichlet:~ $ bash --version
GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.
tho...@dirichlet:~ $ bash -c 'if { :; } 2> /dev/null < NONEXISTING_FILE;
then :; else echo >&2 OK; fi'
OK
tho...@dirichlet:~ $ sh -c 'if { :; } 2> /dev/null < NONEXISTING_FILE; then
:; else echo >&2 OK; fi'
OK
tho...@dirichlet:~ $ bash -c 'if : 2> /dev/null < NONEXISTING_FILE; then :;
else echo >&2 OK; fi'
OK
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'
(no output)
Regards,
Thomas
signature.asc
Description: Digital signature
