c4cf542c57
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
10 lines
267 B
Plaintext
Executable File
10 lines
267 B
Plaintext
Executable File
echo Error >/does/not/exist; echo One:$?
|
|
t=BAD
|
|
t=Ok >>/cant/be/created; echo One:$?
|
|
echo $t
|
|
! >/cant/be/created; echo Zero:$?
|
|
exec >/cant/be/created; echo One:$?
|
|
exec /bin/true >/cant/be/created; echo One:$?
|
|
! exec /bin/true >/cant/be/created; echo Zero:$?
|
|
echo Done
|