emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quotes in Dired listing switches


From: Michael Albinus
Subject: Re: Quotes in Dired listing switches
Date: Sat, 26 Dec 2009 21:21:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> Obviously, there's a problem in the inconsistent parsing of
> dired-listing-switches, where the basic code splits it at spaces without
> doing any additional unquoting or analysis, whereas the Tramp code seems
> to just pass it as-is to the shell (so if you set it to "-al $(rm -rf ~/.)"
> it will try to do something funny).
> I won't claim that the basic code's naive splitting is great, but
> Tramp's similarly naive use is not great either.  So, I suggest to treat
> it as a bug in Tramp which should split it like the basic code and then
> shell-quote-argument the parts.

In tramp.el, I've added quoting of the "'" character in SWITCHES, passed
by `insert-directory', which shall be sufficient.

However, remote directory listings won't show a "thousands separator of
the current locale", because Tramps sets LC_ALL to "C" on the remote
hosts. The C locale has no thousands separator. If you (Juri) want to
change this, you might customize `tramp-remote-process-environment',
setting LC_ALL to en_US.UTF-8 or so. But please be careful, because
Tramp reads output from some commands, and might expect English.

>         Stefan

Best regards, Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]