]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/globstar1.sub
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / globstar1.sub
CommitLineData
495aee44
CR
1shopt -s globstar
2wdir=$PWD
3
4: ${TMPDIR:=/var/tmp}
5DIR=$TMPDIR/globstar-$$
6mkdir -p $DIR
7cd $DIR || {
8 echo "$DIR: cannot cd" >&2
9 exit 1
10}
11mkdir -p foo/{a,b} bar/{c,d,foo/{e,f}} baz/{g,h}
12
13
14echo **/foo*
15
16echo **/foo*/
17
18echo **/foo*/*
19
20cd $wdir
21rm -rf $DIR