xref: /freebsd/bin/sh/tests/execution/set-x3.0 (revision e8d8bef961a50d4dc22501cde4fb9fb0be1b2532)
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