xref: /freebsd/bin/sh/tests/execution/set-x2.0 (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1
2key='must contain this'
3PS4="$key+ "
4{ r=`set -x; { :; } 2>&1 >/dev/null`; } 2>/dev/null
5case $r in
6*"$key"*) true ;;
7*) false ;;
8esac
9