blob: 648f0a9ebab64ef901ddd36a60d5c49f35db609c [file] [log] [blame]
Jari Aaltob80f6442004-07-27 13:29:18 +00001#!../bash
2# $Id: set-x.tests,v 1.1 2002/12/09 13:12:37 rockyb Exp $
3#
4# Test that "set -x" shows what we think it should.
5#
6set -x
7for ((i=0; i<=5; i++ )) ; do
8 x=0
9done
10for i in 0 1 2 ; do
11 x=i
12done
13case x in
14 0) x=i ;;
15 *) x=i ;;
16esac
Chet Ramey00018032011-11-21 20:51:19 -050017set +x
Jari Aaltob80f6442004-07-27 13:29:18 +000018
Chet Ramey00018032011-11-21 20:51:19 -050019# test BASH_XTRACEFD
20${THIS_SH} ./set-x1.sub