|
From: | Kai Großjohann |
Subject: | Re: shell-quote-argument: make it behave as if on Unix? |
Date: | Fri, 12 Apr 2002 13:07:57 +0200 |
User-agent: | Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) |
"Eli Zaretskii" <address@hidden> writes: > It strikes me that we should add to shell-quote-argument an optional > argument that will cause it to quote a shell argument for specific OS. > If the optional argument is omitted or nil, let it default to > system-type. Another possibility is to keep the current behavior and just document it: This function uses the variable `system-type' to see what kind of quoting is to take place. You can bind that variable before calling this function to effect a different kind of quoting. For example, the following gives you Unix-style quoting even when Emacs is running on Windows-like systems: (let ((system-type 'not-windows)) (shell-quote-argument "...")) kai -- Silence is foo!
[Prev in Thread] | Current Thread | [Next in Thread] |