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