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