about summary refs log tree commit diff
path: root/Src/pattern.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-03-06 00:22:58 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-03-06 00:22:58 +0000
commit1777b67b1c62f6fe60e98b9d1e8469f19f1c2f3b (patch)
tree1436e06ea5d3d45eaee846ca4251387437e99107 /Src/pattern.c
parentb144ed7455939eb5e7a1b56ac502b7e0688b8dbf (diff)
downloadzsh-1777b67b1c62f6fe60e98b9d1e8469f19f1c2f3b.tar.gz
zsh-1777b67b1c62f6fe60e98b9d1e8469f19f1c2f3b.tar.xz
zsh-1777b67b1c62f6fe60e98b9d1e8469f19f1c2f3b.zip
zsh-users/7121: NO_CASE_GLOB option for case-insensitive globbing
Diffstat (limited to 'Src/pattern.c')
-rw-r--r--Src/pattern.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/pattern.c b/Src/pattern.c
index b62cbcd37..1f0a87561 100644
--- a/Src/pattern.c
+++ b/Src/pattern.c
@@ -289,7 +289,10 @@ static long rn_offs;
 void
 patcompstart(void)
 {
-    patglobflags = 0;
+    if (isset(CASEGLOB))
+	patglobflags = 0;
+    else
+	patglobflags = GF_IGNCASE;
 }
 
 /* Top level pattern compilation subroutine */