Skip to content

Commit d87b69c

Browse files
committed
Add test case
1 parent cb17ecd commit d87b69c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/ok

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
./test_compound.bash
55
./test_others.bash
66
./test_job.bash
7+
../../../test/test_compound.bash

test/test_compound.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,4 +882,9 @@ res=$($com -c '[[ -a /etc/passwd && -a /etc/passwdaaa ]]')
882882
res=$($com -c '[[ -a /etc/passwdaaaa || -a /etc/passwd ]]')
883883
[ "$?" = "0" ] || err $LINENO
884884

885+
# glob
886+
887+
res=$($com -c '[[ $- == c ]]')
888+
[ "$?" = "0" ] || err $LINENO
889+
885890
echo $0 >> ./ok

0 commit comments

Comments
 (0)