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 #14 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:04:37 +0300
> From: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
> Date: Thu, 21 Apr 2011 14:10:49 +0200
> 
> > I have no problem with using the
> > result of shell-quote-argument in "M-!".
> Which result?
> Which command?

The command was "ls Vid\éos".  It displayed the files in that
directory.

> I am speaking of escaping accentued characters "é, à etc..."

Yes, so am I.

> Why `shell-quote-argument' escape such characters?

Because it wants to play safe.  In a Posix shell, any non-special
character preceded with a backslash stands for itself, I'm sure you
know that.  Backslash-escaping anything that is not in the Posix
character set avoids too much knowledge about the underlying shell's
special characters, and should be harmless if the escaped characters
are not special.





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

Previous Next


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