freebsd-dev/tools/regression/bin/sh/errors/backquote-error2.0
David E. O'Brien f3bf9b7a16 Allow one to regression test 'sh' changes without having to install
a potentially bad /bin/sh first.
2010-10-12 18:20:38 +00:00

8 lines
196 B
Plaintext

# $FreeBSD$
${SH} -c 'echo `echo .BA"DCODE.`
echo ".BAD"CODE.' 2>&1 | grep -q BADCODE && exit 1
echo '`"`' | ${SH} -n 2>/dev/null && exit 1
echo '`'"'"'`' | ${SH} -n 2>/dev/null && exit 1
exit 0