[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add shell-quasiquote.
From: |
Eli Zaretskii |
Subject: |
Re: [PATCH] Add shell-quasiquote. |
Date: |
Sat, 07 Nov 2015 09:51:50 +0200 |
> From: address@hidden (Kai Großjohann)
> Date: Sat, 07 Nov 2015 00:35:35 +0100
>
> One thing that could be improved, imho, is that shell-quote-argument
> looks at the system it's running on and quotes for that. But actually
> it should quote for the shell that receives the result, and it's not easy
> to know what that shell is.
>
> For example, especially on Windows it's conceivable that some folks
> would like to quote for cmd.exe, others would like to quote for
> Powershell, and still others are Cygwin aficionados and would like to
> quote for bash or zsh...
>
> One idea might be that shell-quote-argument could look at shell-file-name.
> I have no idea whether that would fly.
This already works as you describe in the Windows build, see
w32-shell-dos-semantics.