summaryrefslogtreecommitdiff
path: root/shells/bash3/files/patch-tests_shopt.tests
blob: ad2eac3d811e03bc74e582be1c8b932f4f657199 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$FreeBSD$

--- tests/shopt.tests.orig	Tue Sep 21 17:49:32 1999
+++ tests/shopt.tests	Tue Nov 20 23:52:45 2001
@@ -21,6 +21,7 @@
 shopt -u mailwarn
 shopt -u nocaseglob
 shopt -u nullglob
+shopt -u failglob
 shopt -s promptvars
 shopt -u shift_verbose
 shopt -s sourcepath
@@ -92,3 +93,11 @@
 builtin printf -- "--\n"
 shopt -p xyz1
 shopt -o -p xyz1
+
+mkdir tmp
+touch tmp/l1 tmp/l2 tmp/l3
+builtin echo tmp/l[12] tmp/*4 tmp/*3
+shopt -s failglob
+builtin echo tmp/l[12] tmp/*4 tmp/*3
+rm -r tmp
+shopt -u failglob