summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-01-11 03:10:59 +0000
committerJim Meyering <jim@meyering.net>1999-01-11 03:10:59 +0000
commit75e54792207485a12252a6b74936ba9386fad3ea (patch)
tree12a01960995f7862419d9df6c520d0080fe77393 /src/ls.c
parentdb0dadb263c7f45446dd3185a9a27fe0d63d01d3 (diff)
downloadcoreutils-75e54792207485a12252a6b74936ba9386fad3ea.tar.xz
(decode_switches): Now that escape_quoting_style no longer
escapes the SPACE character, arrange for SPACEs to be quoted here.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ls.c b/src/ls.c
index 81e0e83d0..e048d7a4a 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -1164,6 +1164,8 @@ decode_switches (int argc, char **argv)
}
filename_quoting_options = clone_quoting_options (NULL);
+ if (get_quoting_style (filename_quoting_options) == escape_quoting_style)
+ set_char_quoting (filename_quoting_options, ' ', 1);
if (indicator_style != none)
for (p = "*=@|" + (int) indicator_style - 1; *p; p++)
set_char_quoting (filename_quoting_options, *p, 1);