From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#8531: 24.0.50; shell-quote-argument shouldn't escape special characters Date: Thu, 21 Apr 2011 18:34:37 +0200 Message-ID: <87aafjzhpe.fsf@gmail.com> References: <8762q8xe3i.fsf@gmail.com> <83ei4v3ndm.fsf@gnu.org> <87ipu7oldi.fsf@gmail.com> <83aafj3gd6.fsf@gnu.org> <87hb9rzq6a.fsf@gmail.com> <837han3dw7.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1303403856 28228 80.91.229.12 (21 Apr 2011 16:37:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 16:37:36 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 21 18:37:33 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QCwsm-0008RP-88 for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Apr 2011 18:37:32 +0200 Original-Received: from localhost ([::1]:48840 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCwsl-0000aQ-NV for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Apr 2011 12:37:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCwsj-0000aA-FG for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 12:37:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCwsi-0002xK-Kx for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 12:37:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCwsi-0002xE-JZ for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 12:37:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QCwqN-0005Wn-2S; Thu, 21 Apr 2011 12:35:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <8762q8xe3i.fsf@gmail.com> Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Apr 2011 16:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8531 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.130340370221245 (code B ref -1); Thu, 21 Apr 2011 16:35:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Apr 2011 16:35:02 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QCwqL-0005WZ-Az for submit@debbugs.gnu.org; Thu, 21 Apr 2011 12:35:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QCwqJ-0005WN-Cw for submit@debbugs.gnu.org; Thu, 21 Apr 2011 12:35:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCwqD-0002Zt-Ds for submit@debbugs.gnu.org; Thu, 21 Apr 2011 12:34:54 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:51935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCwqD-0002Zp-CU for submit@debbugs.gnu.org; Thu, 21 Apr 2011 12:34:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCwqC-0008TY-KU for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 12:34:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCwqB-0002Ze-9J for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 12:34:52 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:44491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCwqB-0002Za-1L for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 12:34:51 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QCwqA-0006QR-2q for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 18:34:50 +0200 Original-Received: from 82.77.197-77.rev.gaoland.net ([77.197.77.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Apr 2011 18:34:50 +0200 Original-Received: from thierry.volpiatto by 82.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Apr 2011 18:34:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 82.77.197-77.rev.gaoland.net User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:RqPjiAGlulZlILYHM63j2tjTw8I= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 21 Apr 2011 12:35:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45924 Archived-At: Eli Zaretskii writes: >> From: Thierry Volpiatto >> 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? Yes you're right, sorry, i was inserting ~/Vidéos. So yes the problem is related only to eshell. -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997