emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add shell-quasiquote.


From: Random832
Subject: Re: [PATCH] Add shell-quasiquote.
Date: Wed, 21 Oct 2015 10:18:49 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Eli Zaretskii <address@hidden> writes:
>> From: Random832 <address@hidden>
>> Strictly speaking, Emacs doesn't *have* an API for "quote for POSIX
>> shells"
>
> Of course it does: it's called "shell-quote-argument".  It does
> support Posix shells.

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.




reply via email to

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