redir_errors.tests 267 B

123456789
  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