about summary refs log tree commit diff
path: root/Src/glob.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2013-06-13 18:40:36 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-06-13 18:40:36 +0100
commit347a63da0cf1c681ac97c21a107b4722abf449b2 (patch)
treeeb91735a2bb171a5f092c374e5a84f3e1ad7008f /Src/glob.c
parentfdf2867e5f08809ff3fccc78fb6df13a196e3efc (diff)
downloadzsh-347a63da0cf1c681ac97c21a107b4722abf449b2.tar.gz
zsh-347a63da0cf1c681ac97c21a107b4722abf449b2.tar.xz
zsh-347a63da0cf1c681ac97c21a107b4722abf449b2.zip
31465: fix basic completion and globbing uses of disabled patterns
Diffstat (limited to 'Src/glob.c')
-rw-r--r--Src/glob.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/Src/glob.c b/Src/glob.c
index db86d2468..0defb1a0f 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -445,41 +445,6 @@ insert(char *s, int checked)
     unqueue_signals();
 }
 
-/* Check to see if str is eligible for filename generation. */
-
-/**/
-mod_export int
-haswilds(char *str)
-{
-    /* `[' and `]' are legal even if bad patterns are usually not. */
-    if ((*str == Inbrack || *str == Outbrack) && !str[1])
-	return 0;
-
-    /* If % is immediately followed by ?, then that ? is     *
-     * not treated as a wildcard.  This is so you don't have *
-     * to escape job references such as %?foo.               */
-    if (str[0] == '%' && str[1] == Quest)
-	str[1] = '?';
-
-    for (; *str; str++) {
-	switch (*str) {
-	    case Inpar:
-	    case Bar:
-	    case Star:
-	    case Inbrack:
-	    case Inang:
-	    case Quest:
-		return 1;
-	    case Pound:
-	    case Hat:
-		if (isset(EXTENDEDGLOB))
-		    return 1;
-		break;
-	}
-    }
-    return 0;
-}
-
 /* Do the globbing:  scanner is called recursively *
  * with successive bits of the path until we've    *
  * tried all of it.                                */