xref: /dflybsd-src/tools/regression/bin/sh/execution/set-x2.0 (revision fb1dde20d596d2938b7c0e3b7c31acf4a7cb4d0a)
1# $FreeBSD: head/bin/sh/tests/execution/set-x2.0 222882 2011-06-08 21:58:19Z jilles $
2
3key='must contain this'
4PS4="$key+ "
5{ r=`set -x; { :; } 2>&1 >/dev/null`; } 2>/dev/null
6case $r in
7*"$key"*) true ;;
8*) false ;;
9esac
10