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
