summary refs log tree commit diff
path: root/bin/1sh/tests/execution/set-x1.0
blob: 8c8d11e4520665ff3721a457b7ceb82480a10d44 (plain) (blame)
1
2
3
4
5
6
7
8
# $FreeBSD: releng/12.1/bin/sh/tests/execution/set-x1.0 222882 2011-06-08 21:58:19Z jilles $

key='must_contain_this'
{ r=`set -x; { : "$key"; } 2>&1 >/dev/null`; } 2>/dev/null
case $r in
*"$key"*) true ;;
*) false ;;
esac