~tom-gall/linaro/busybox

« back to all changes in this revision

Viewing changes to shell/hush_test/hush-misc/redir3.tests

  • Committer: Tom Gall
  • Date: 2011-03-01 21:57:28 UTC
  • Revision ID: tom.gall@linaro.org-20110301215728-1anly2d6ewgcwwnl
initial import based on busybox 1.18.3 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
echo Error >/does/not/exist; echo One:$?
 
2
t=BAD
 
3
t=Ok >>/cant/be/created; echo One:$?
 
4
echo $t
 
5
! >/cant/be/created; echo Zero:$?
 
6
exec >/cant/be/created; echo One:$?
 
7
exec /bin/true >/cant/be/created; echo One:$?
 
8
! exec /bin/true >/cant/be/created; echo Zero:$?
 
9
echo Done