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