summaryrefslogtreecommitdiff
path: root/shells/bash2/files/patch-subst.c
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2001-11-21 01:40:39 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2001-11-21 01:40:39 +0000
commit452e62785450caf063cd7d66bf73cb913ad7a7f3 (patch)
treed87a5b19f40ec26ff39a671306d0ca4ce274895e /shells/bash2/files/patch-subst.c
parentAdd a patch so a2ps doesn't bomb out if the machine it is called from has (diff)
* Update to 2.05a.
* Split failglob patch into per-file patches. Reviewed by: obrien
Notes
Notes: svn path=/head/; revision=50311
Diffstat (limited to 'shells/bash2/files/patch-subst.c')
-rw-r--r--shells/bash2/files/patch-subst.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/shells/bash2/files/patch-subst.c b/shells/bash2/files/patch-subst.c
new file mode 100644
index 000000000000..8ef29a8b5774
--- /dev/null
+++ b/shells/bash2/files/patch-subst.c
@@ -0,0 +1,27 @@
+
+$FreeBSD$
+
+--- subst.c.orig Mon Nov 5 20:19:49 2001
++++ subst.c Tue Nov 20 23:52:45 2001
+@@ -121,6 +121,9 @@
+ a null file. */
+ int allow_null_glob_expansion;
+
++/* Non-zero means to signal an error when globbing fails to match. */
++int fail_glob_expansion;
++
+ #if 0
+ /* Variables to keep track of which words in an expanded word list (the
+ output of expand_word_list_internal) are the result of globbing
+@@ -6132,6 +6135,11 @@
+ {
+ output_list = (WORD_LIST *)list_append (glob_list, output_list);
+ PREPEND_LIST (tlist, disposables);
++ }
++ else if (fail_glob_expansion != 0)
++ {
++ report_error ("no match: %s", tlist->word->word);
++ jump_to_top_level (DISCARD);
+ }
+ else if (allow_null_glob_expansion == 0)
+ {