xref: /dflybsd-src/tools/regression/bin/sh/execution/set-x2.0 (revision 3e3895bf4584c1562faf4533cbd97026ee6a8dcf)
1# $FreeBSD: head/bin/sh/tests/execution/set-x2.0 222882 2011-06-08 21:58:19Z jilles $
2
3key='must contain this'
4PS4="$key+ "
5{ r=`set -x; { :; } 2>&1 >/dev/null`; } 2>/dev/null
6case $r in
7*"$key"*) true ;;
8*) false ;;
9esac
10