blob: 686dab74b1ce80a3432ba7ba7b362a6bcd9e97c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
shopt -s extglob
TESTDIR=${TMPDIR:-/tmp}/eglob-test-$$
mkdir $TESTDIR
builtin cd $TESTDIR || { echo $0: cannot cd to $TESTDIR >&2 ; exit 1; }
rm -rf *
touch a ab ba
echo a*!(x)
echo a!(x)
echo a*?(x)
echo a?(x)
builtin cd $OLDPWD
rm -rf $TESTDIR
|