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