1
echo Error >/does/not/exist; echo One:$?
3
t=Ok >>/cant/be/created; echo One:$?
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:$?