about summary refs log tree commit diff
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
parent74f4e8f66340644f73ee4be56901a58029b47a76 (diff)
downloadzsh-7fc8ddd9551a19e82565a6e677ba4283dd70bb99.tar.gz
zsh-7fc8ddd9551a19e82565a6e677ba4283dd70bb99.tar.xz
zsh-7fc8ddd9551a19e82565a6e677ba4283dd70bb99.zip
24301: missed a case for lower-casing options
-rw-r--r--ChangeLog2
-rw-r--r--Src/options.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ef7889321..aea1c72f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2007-12-19  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* 24301: missed a case for the lower-casing fix in 23219.
+
 	* 24298: Tonguc Yumruk: Functions/Misc/is-at-least: use
 	emulate -L for consistency.
 
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++;
 		}