emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add shell-quasiquote.


From: David Kastrup
Subject: Re: [PATCH] Add shell-quasiquote.
Date: Thu, 22 Oct 2015 09:03:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Random832 <address@hidden>
>> Date: Wed, 21 Oct 2015 15:50:32 -0400
>> 
>> Eli Zaretskii <address@hidden> writes:
>> > Sorry, you lost me.  If it's not Emacs who will interpret the command,
>> > then it must be some real shell.  So are you talking about forcing
>> > Emacs to run /bin/sh and nothing else?  If so, you can simply bind
>> > shell-file-name to that (and maybe also bind shell-command-switch
>> > accordingly).  Or am I (again) missing something?
>> 
>> /bin/sh might not be a POSIX shell. on Solaris you need
>> /usr/xpg4/bin/sh. And you might need environment variables set such as
>> POSIXLY_CORRECT or PATH to get POSIX behavior from all utilities.
>
> OK, but that still boils down to binding some more variables.  If we
> want to help users with these factoids, we could have a small database
> of the known Posix shells and their requirements.

I think that's overdoing it with regard to shell-quote-argument and
friends.  We don't need a full POSIX shell, just something with the most
basic quoting conventions of it.  /bin/sh should be fine here.

That's all the guarantee you get for calling commands/scripts with
`system'.  I don't think we should require more than that or try
providing some guarantees in that regard.

-- 
David Kastrup



reply via email to

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