My version of
ls supports a
time-style format (with a space) as follows:
dired-listing-switches looks like this:
"-alh --group-directories-first --time-style=+%m-%d-%Y %H:%M:%S"
The space between the date and the time breaks the functionality. Any ideas on how to use
(setq dired-listing-switches . . .) with a space between the date and time would be appreciated.
I've tried single quotes and I've tried
\" but that format is rejected.
EDIT (October 28, 2014)
I've tried single quotes:
--time-style='+%m-%d-%Y %H:%M:%S' '--time-style=+%m-%d-%Y %H:%M:%S'
I've tried escaped double quotes:
--time-style=\"+%m-%d-%Y %H:%M:%S\" \"--time-style=+%m-%d-%Y %H:%M:%S\"
Based on Drew's suggestion below, I tried an escaped space:
The following link is the thread for the new Emacs bug report that I filed today:
EDIT October 29, 2014: For clarification purposes, the proposed
dired-listing-switches string will either generate an error, or it will omit
hours:minutes:seconds. Although dired-mode does not support a list for
switches when using
dired-insert-directory, it is interesting to note that
files.el permits a list format which works. The following screen shot was generated with
insert-directory using a
list format for the
switches argument. I have already updated the bug report to mention the following expression (which bypasses dired-mode altogether).
(insert-directory "/" '("--dired" "-alth" "--time-style=+%m-%d-%Y %H:%M:%S") nil t)