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