about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2002-12-10 12:51:43 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2002-12-10 12:51:43 +0000
commitab6f1a632d64f6a5614f8574feec2656dfd84578 (patch)
tree9f749c46c0a397b788196a9b6b759aac8fd91761 /Src
parente91067d966f719803dae5db08addf7fa5748462b (diff)
downloadzsh-ab6f1a632d64f6a5614f8574feec2656dfd84578.tar.gz
zsh-ab6f1a632d64f6a5614f8574feec2656dfd84578.tar.xz
zsh-ab6f1a632d64f6a5614f8574feec2656dfd84578.zip
17994: Globbing flags with no effect could hang the shell
Diffstat (limited to 'Src')
-rw-r--r--Src/pattern.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/pattern.c b/Src/pattern.c
index 33c8858a2..71f2f379c 100644
--- a/Src/pattern.c
+++ b/Src/pattern.c
@@ -688,7 +688,10 @@ patcompbranch(int *flagp)
 			continue;
 		    }
 		}
-	    }
+	    } else if (!*patparse)
+		break;
+	    else
+		continue;
 	} else if (isset(EXTENDEDGLOB) && *patparse == Hat) {
 	    /*
 	     * ^pat:  anything but pat.  For proper backtracking,