sh: Add simple tests for set -x and PS4.
[dragonfly.git] / tools / regression / bin / sh / execution / set-x1.0
1 # $FreeBSD: src/tools/regression/bin/sh/execution/set-x1.0,v 1.1 2011/06/08 21:58:19 jilles Exp $
2
3 key='must_contain_this'
4 { r=`set -x; { : "$key"; } 2>&1 >/dev/null`; } 2>/dev/null
5 case $r in
6 *"$key"*) true ;;
7 *) false ;;
8 esac