(decode_switches): Use case-sensitive matching to
authorJim Meyering <jim@meyering.net>
Sat, 23 Nov 2002 16:43:49 +0000 (16:43 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 23 Nov 2002 16:43:49 +0000 (16:43 +0000)
decode the QUOTING_STYLE environment variable.  This is more
consistent with the documentation, and with --quoting-style.

src/ls.c

index 246e7f0..5620638 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -1303,7 +1303,7 @@ decode_switches (int argc, char **argv)
     char const *q_style = getenv ("QUOTING_STYLE");
     if (q_style)
       {
-       int i = ARGCASEMATCH (q_style, quoting_style_args, quoting_style_vals);
+       int i = ARGMATCH (q_style, quoting_style_args, quoting_style_vals);
        if (0 <= i)
          set_quoting_style (NULL, quoting_style_vals[i]);
        else