busybox/shell/hush_test/hush-redir/redir3.tests
Denys Vlasenko c4cf542c57 sh testsuite: create hush-redir/* and move files around
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-10-02 17:55:51 +02:00

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