mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 10:51:48 +02:00
(decode_switches): Use case-sensitive matching to
decode the QUOTING_STYLE environment variable. This is more consistent with the documentation, and with --quoting-style.
This commit is contained in:
2
src/ls.c
2
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
|
||||
|
||||
Reference in New Issue
Block a user