all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: shell-quote-argument bug on w32
Date: Mon, 25 Sep 2006 22:26:13 +0300	[thread overview]
Message-ID: <uvenblpd6.fsf@gnu.org> (raw)
In-Reply-To: <4517DC7C.90106@student.lu.se> (message from Lennart Borgman on Mon, 25 Sep 2006 15:41:16 +0200)

> Date: Mon, 25 Sep 2006 15:41:16 +0200
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> 
> shell-quote-argument actually is an "os quote argument". It does not 
> check what shell is actually used. This is a bug in my opinion, but you 
> notice it mostly on w32 where different shells are actually used.

I don't think it's a bug on Posix platforms, since /bin/sh is
generally invoked there, even if the interactive shell is different.

> I think therefore that shell-quote-argument should check
> shell-file-name at least when system-type is 'windows-nt.

I think it's needed _only_ on windows-nt.  Cygwin uses Bash, while the
DOS port doesn't need to distinguish between the different shells,
since the functions it uses for subprogram invocation DTRT in all
cases.

> (defcustom shell-quote-types
>   '( ("cmdproxy" w32cmd) )
>   "Type of quoting to use for inferior shell.
> A list of cons cells where the car of each cell is a regexp that
> is matched against `shell-file-name' by
> `shell-quote-argument'. When a match is found the corresponding
> quoting type given by the cdr of the cons cell is used."
>   :type '(repeat (list regexp symbol))
>   :group 'shell)

This isn't needed, since we already have w32-system-shell-p and
w32-shell-dos-semantics, see w32-fns.el.

  parent reply	other threads:[~2006-09-25 19:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-25 13:41 shell-quote-argument bug on w32 Lennart Borgman
2006-09-25 13:59 ` Jason Rumney
2006-09-25 19:36   ` Lennart Borgman
2006-09-25 21:40     ` Jason Rumney
2006-09-25 23:05       ` Jason Rumney
2006-09-25 19:26 ` Eli Zaretskii [this message]
2006-09-25 19:51   ` Lennart Borgman
2006-09-26  3:13     ` Stefan Monnier
2006-09-26 11:11       ` Lennart Borgman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uvenblpd6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.