diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2004-03-06 00:22:58 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2004-03-06 00:22:58 +0000 |
commit | 1777b67b1c62f6fe60e98b9d1e8469f19f1c2f3b (patch) | |
tree | 1436e06ea5d3d45eaee846ca4251387437e99107 /Src/pattern.c | |
parent | b144ed7455939eb5e7a1b56ac502b7e0688b8dbf (diff) | |
download | zsh-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.c | 5 |
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 */ |