tizen 2.3.1 release
[external/bash.git] / tests / set-x.tests
1 #!../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 #
6 set -x
7 for ((i=0; i<=5; i++ )) ; do
8   x=0
9 done
10 for i in 0 1 2 ; do
11   x=i
12 done
13 case x in 
14  0) x=i ;;
15  *) x=i ;;
16 esac
17 set +x
18
19 # test BASH_XTRACEFD
20 ${THIS_SH} ./set-x1.sub