mirror of
https://github.com/sheumann/hush.git
synced 2024-12-28 22:30:05 +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
|