~ubuntu-branches/ubuntu/trusty/bash/trusty-security

« back to all changes in this revision

Viewing changes to tests/set-x1.sub

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-03-03 22:52:05 UTC
  • mfrom: (1.3.5) (2.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20140303225205-87ltrt5kspeq0g1b
Tags: 4.3-1ubuntu1
* Merge with Debian; remaining changes:
  - skel.bashrc:
    - Run lesspipe.
    - Enable ls aliases.
    - Set options in ll alias to -alF.
    - Define an alert alias.
    - Enabled colored grep aliases.
  - etc.bash.bashrc:
    - Add sudo hint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
: ${TMPDIR:=/var/tmp}
 
2
TRACEFILE=$TMPDIR/bash-trace-$$
 
3
trap 'rm -f $TRACEFILE' 0 1 2 3 6 15
 
4
 
 
5
exec 4>$TRACEFILE
 
6
BASH_XTRACEFD=4
 
7
 
 
8
set -x
 
9
 
 
10
echo 1
 
11
echo 2
 
12
echo 3
 
13
echo 4
 
14
 
 
15
unset BASH_XTRACEFD
 
16
 
 
17
for f in a b c d e; do echo $f ; done
 
18
 
 
19
set +x
 
20
 
 
21
echo TRACEFILE:
 
22
cat $TRACEFILE
 
23
echo =====
 
24
 
 
25
exit 0