]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/extglob3.sub
bash-5.0 distribution sources and documentation
[thirdparty/bash.git] / tests / extglob3.sub
index 94567ee9938b77de1ccdfa7cb26f257064edafc1..3f51c40cd28bdc840fc636e783800de1ba67946b 100644 (file)
@@ -1,5 +1,5 @@
 shopt -s extglob
-DIR=/tmp/extglob-$$
+DIR=$TMPDIR/extglob-$$
 mkdir $DIR
 cd $DIR
 
@@ -7,15 +7,18 @@ touch a.log
 
 echo *(.)
 echo *(.)*
+echo *(foo)
+echo *(foo|bar)
 echo ?(foo)*
 echo ?(foo)
 echo *(foo)*
 echo @(|foo)*
 
 echo *(foo).*
+echo *(foo|bar).*
 
 echo !(foo)*
+echo !(foo|bar)*
 
 cd $OLDPWD
 rm -rf $DIR
-