emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add shell-quasiquote.


From: Michael Albinus
Subject: Re: [PATCH] Add shell-quasiquote.
Date: Wed, 21 Oct 2015 16:40:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Random832 <address@hidden> writes:

> It doesn't have a documented way for the caller to insist that the
> string be quoted for a POSIX shell rather than the user's shell. In
> particular, the (undocumented) mechanism that Tramp uses to get this
> behavior will obviously break in the presence of (as recommended by the
> documentation) an advised or completely overridden version of the
> function put in place by a user who has an unusual shell.
>
> Maybe what needs to be done is to have separate functions
> shell-quote-argument-msdos, shell-quote-argument-nt,
> shell-quote-argument-posix, and then have shell-quote-argument call
> those based on the user's shell.

I'm in favor of this proposal. Could be also an optional argument to
`shell-quote-argument', instead of four functions.

Tramp has to handle backwards compatibility then, but hey!, this is
daily business :-)

Best regards, Michael.



reply via email to

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