xref: /freebsd/bin/sh/tests/execution/set-x2.0 (revision a0b9e2e854027e6ff61fb075a1309dbc71c42b54)
1# $FreeBSD$
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