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