1# $FreeBSD: head/bin/sh/tests/errors/redirection-error6.0 205154 2010-03-14 14:24:35Z jilles $
2# A redirection error on a compound command should not abort the shell.
3exec 2>/dev/null
4{ echo bad; } </var/empty/x
5if :; then echo bad; fi </var/empty/x
6for i in 1; do echo bad; done </var/empty/x
7i=0
8while [ $i = 0 ]; do echo bad; i=1; done </var/empty/x
9i=0
10until [ $i != 0 ]; do echo bad; i=1; done </var/empty/x
11case i in *) echo bad ;; esac </var/empty/x
12exit 0
13