1*3e3895bfSKrzysztof Piecuch# $FreeBSD: head/bin/sh/tests/execution/set-x2.0 222882 2011-06-08 21:58:19Z jilles $ 2406adc9fSPeter Avalos 3406adc9fSPeter Avaloskey='must contain this' 4406adc9fSPeter AvalosPS4="$key+ " 5406adc9fSPeter Avalos{ r=`set -x; { :; } 2>&1 >/dev/null`; } 2>/dev/null 6406adc9fSPeter Avaloscase $r in 7406adc9fSPeter Avalos*"$key"*) true ;; 8406adc9fSPeter Avalos*) false ;; 9406adc9fSPeter Avalosesac 10