redirection-error.0 (157415) | redirection-error.0 (213738) |
---|---|
1# $FreeBSD: head/tools/regression/bin/sh/errors/redirection-error.0 157415 2006-04-02 19:02:49Z stefanf $ | 1# $FreeBSD: head/tools/regression/bin/sh/errors/redirection-error.0 213738 2010-10-12 18:20:38Z obrien $ |
2IFS=, 3 4SPECIAL="break,\ 5 :,\ 6 continue,\ 7 . /dev/null, 8 eval, 9 exec, --- 27 unchanged lines hidden (view full) --- 37 umask,\ 38 unalias -a,\ 39 wait" 40 41# Special built-in utilities must abort on a redirection error. 42set -- ${SPECIAL} 43for cmd in "$@" 44do | 2IFS=, 3 4SPECIAL="break,\ 5 :,\ 6 continue,\ 7 . /dev/null, 8 eval, 9 exec, --- 27 unchanged lines hidden (view full) --- 37 umask,\ 38 unalias -a,\ 39 wait" 40 41# Special built-in utilities must abort on a redirection error. 42set -- ${SPECIAL} 43for cmd in "$@" 44do |
45 sh -c "${cmd} > /; exit 0" 2>/dev/null && exit 1 | 45 ${SH} -c "${cmd} > /; exit 0" 2>/dev/null && exit 1 |
46done 47 48# Other utilities must not abort. 49set -- ${UTILS} 50for cmd in "$@" 51do | 46done 47 48# Other utilities must not abort. 49set -- ${UTILS} 50for cmd in "$@" 51do |
52 sh -c "${cmd} > /; exit 0" 2>/dev/null || exit 1 | 52 ${SH} -c "${cmd} > /; exit 0" 2>/dev/null || exit 1 |
53done | 53done |