Bash-4.2 distribution sources and documentation
This commit is contained in:
parent
30d188c293
commit
495aee441b
341 changed files with 108751 additions and 36060 deletions
21
tests/globstar1.sub
Normal file
21
tests/globstar1.sub
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
shopt -s globstar
|
||||
wdir=$PWD
|
||||
|
||||
: ${TMPDIR:=/var/tmp}
|
||||
DIR=$TMPDIR/globstar-$$
|
||||
mkdir -p $DIR
|
||||
cd $DIR || {
|
||||
echo "$DIR: cannot cd" >&2
|
||||
exit 1
|
||||
}
|
||||
mkdir -p foo/{a,b} bar/{c,d,foo/{e,f}} baz/{g,h}
|
||||
|
||||
|
||||
echo **/foo*
|
||||
|
||||
echo **/foo*/
|
||||
|
||||
echo **/foo*/*
|
||||
|
||||
cd $wdir
|
||||
rm -rf $DIR
|
||||
Loading…
Add table
Add a link
Reference in a new issue