about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-12-19 21:49:34 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-12-19 21:49:34 +0000
commit7fc8ddd9551a19e82565a6e677ba4283dd70bb99 (patch)
tree3dea8a1f46efaac728049c5b10e306e9209c08be /Src
parent74f4e8f66340644f73ee4be56901a58029b47a76 (diff)
downloadzsh-7fc8ddd9551a19e82565a6e677ba4283dd70bb99.tar.gz
zsh-7fc8ddd9551a19e82565a6e677ba4283dd70bb99.tar.xz
zsh-7fc8ddd9551a19e82565a6e677ba4283dd70bb99.zip
24301: missed a case for lower-casing options
Diffstat (limited to 'Src')
-rw-r--r--Src/options.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/options.c b/Src/options.c
index b46986495..14b730ea5 100644
--- a/Src/options.c
+++ b/Src/options.c
@@ -571,7 +571,9 @@ bin_setopt(char *nam, char **args, UNUSED(Options ops), int isun)
 		if (*t == '_')
 		    chuck(t);
 		else {
-		    *t = tulower(*t);
+		    /* See comment in optlookup() */
+		    if (*t >= 'A' && *t <= 'Z')
+			*t = (*t - 'A') + 'a';
 		    t++;
 		}