mirror of
https://github.com/sheumann/hush.git
synced 2024-11-18 17:10:36 +00:00
10 lines
267 B
Plaintext
10 lines
267 B
Plaintext
|
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
|