option-error.0 (157415) | option-error.0 (213738) |
---|---|
1# $FreeBSD: head/tools/regression/bin/sh/errors/option-error.0 157415 2006-04-02 19:02:49Z stefanf $ | 1# $FreeBSD: head/tools/regression/bin/sh/errors/option-error.0 213738 2010-10-12 18:20:38Z obrien $ |
2IFS=, 3 4SPECIAL="break abc,\ 5 continue abc,\ 6 ., 7 exit abc, 8 export -x, 9 readonly -x, --- 20 unchanged lines hidden (view full) --- 30 umask -z,\ 31 unalias -z,\ 32 wait abc" 33 34# Special built-in utilities must abort on an option or operand error. 35set -- ${SPECIAL} 36for cmd in "$@" 37do | 2IFS=, 3 4SPECIAL="break abc,\ 5 continue abc,\ 6 ., 7 exit abc, 8 export -x, 9 readonly -x, --- 20 unchanged lines hidden (view full) --- 30 umask -z,\ 31 unalias -z,\ 32 wait abc" 33 34# Special built-in utilities must abort on an option or operand error. 35set -- ${SPECIAL} 36for cmd in "$@" 37do |
38 sh -c "${cmd}; exit 0" 2>/dev/null && exit 1 | 38 ${SH} -c "${cmd}; exit 0" 2>/dev/null && exit 1 |
39done 40 41# Other utilities must not abort. 42set -- ${UTILS} 43for cmd in "$@" 44do | 39done 40 41# Other utilities must not abort. 42set -- ${UTILS} 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 | 46done |