GNU bug report logs - #8531
eshell backslash handling

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>

Date: Thu, 21 Apr 2011 07:24:01 UTC

Severity: wishlist

Tags: patch

Found in version 24.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#8531: 24.0.50;
	shell-quote-argument shouldn't escape special characters
Date: Thu, 21 Apr 2011 16:58:00 +0300
> From: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
> Date: Thu, 21 Apr 2011 15:31:41 +0200
> 
> > The command was "ls Vid\éos".  It displayed the files in that
> > directory.
> Yes, but ls "Vid\éos" fail.

Where did the quotes come from?  shell-quote-argument doesn't add
extra quotes.

> The point is being able to do something like this:
> (shell-command (format "ls %s" (shell-quote-argument (read-string "Fname: "))))
> 
> instead of e.g
> (shell-command (format "ls '%s'" (read-string "Fname: ")))

The former works for me without any changes.  Are you sure you use the
default version of shell-quote-argument?





This bug report was last modified 10 years and 109 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.