summary refs log tree commit diff
path: root/bin/cash/tests/execution/set-x1.0
blob: 65bb127cb6476be0654d55f83ed31d69c10f10a2 (plain) (blame)
1
2
3
4
5
6
7
8
# $FreeBSD: releng/12.0/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