diff options
Diffstat (limited to '')
-rw-r--r-- | tests/extglob3.sub | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/extglob3.sub b/tests/extglob3.sub new file mode 100644 index 0000000..3f51c40 --- /dev/null +++ b/tests/extglob3.sub @@ -0,0 +1,24 @@ +shopt -s extglob +DIR=$TMPDIR/extglob-$$ +mkdir $DIR +cd $DIR + +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 |