blob: d400f83902a7de01b27ce9e70c49e5e0fc186ba8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# globignore extglob patterns containing colons -- problem until bash-4.2
: ${TMPDIR:=/tmp}
TESTDIR=$TMPDIR/bash-globignore-$$
[ -d "$TESTDIR" ] || mkdir "$TESTDIR"
cd "$TESTDIR" || exit 2
shopt -s extglob
GLOBIGNORE='+([^[:alnum:]]):@([-.,:; _]):[![:alnum:]]'
touch ';' '++'
echo *
rm ';' '++'
cd $OLDPWD
rmdir $TESTDIR
|