redirection-error6.0 revision 205154
162587Sitojun# $FreeBSD: head/tools/regression/bin/sh/errors/redirection-error6.0 205154 2010-03-14 14:24:35Z jilles $ 278064Sume# A redirection error on a compound command should not abort the shell. 362587Sitojunexec 2>/dev/null 4139826Simp{ echo bad; } </var/empty/x 552904Sshinif :; then echo bad; fi </var/empty/x 652904Sshinfor i in 1; do echo bad; done </var/empty/x 753541Sshini=0 852904Sshinwhile [ $i = 0 ]; do echo bad; i=1; done </var/empty/x 952904Sshini=0 1052904Sshinuntil [ $i != 0 ]; do echo bad; i=1; done </var/empty/x 1152904Sshincase i in *) echo bad ;; esac </var/empty/x 1252904Sshinexit 0 1352904Sshin