(decode_switches): Now that escape_quoting_style no longer
authorJim Meyering <jim@meyering.net>
Mon, 11 Jan 1999 03:10:59 +0000 (03:10 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 11 Jan 1999 03:10:59 +0000 (03:10 +0000)
escapes the SPACE character, arrange for SPACEs to be quoted here.

src/ls.c

index 81e0e83..e048d7a 100644 (file)
--- 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);