xref: /freebsd/bin/sh/tests/execution/set-x1.0 (revision 1719886f6d08408b834d270c59ffcfd821c8f63a)
1
2key='must_contain_this'
3{ r=`set -x; { : "$key"; } 2>&1 >/dev/null`; } 2>/dev/null
4case $r in
5*"$key"*) true ;;
6*) false ;;
7esac
8