From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20744: shell-quote-argument in Emacs 24.5 and Emacs 25 on Windows cannot figure out path correctly Date: Sun, 07 Jun 2015 22:11:49 +0300 Message-ID: <837frfmiyy.fsf@gnu.org> References: <5571CF77.5000902@gmail.com> <83oaktoqw1.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1433704404 4269 80.91.229.3 (7 Jun 2015 19:13:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Jun 2015 19:13:24 +0000 (UTC) Cc: 20744@debbugs.gnu.org, zhangda82@gmail.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 07 21:13:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z1g0N-0008VD-QD for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jun 2015 21:13:11 +0200 Original-Received: from localhost ([::1]:55036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1g0M-0000kh-Mk for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jun 2015 15:13:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1g0J-0000ka-L8 for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2015 15:13:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1g0E-0000WQ-Kf for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2015 15:13:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1g0E-0000WK-HQ for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2015 15:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z1g0E-00074S-9I for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2015 15:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Jun 2015 19:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20744 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20744-submit@debbugs.gnu.org id=B20744.143370433327125 (code B ref 20744); Sun, 07 Jun 2015 19:13:02 +0000 Original-Received: (at 20744) by debbugs.gnu.org; 7 Jun 2015 19:12:13 +0000 Original-Received: from localhost ([127.0.0.1]:44316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z1fzR-00073Q-AN for submit@debbugs.gnu.org; Sun, 07 Jun 2015 15:12:13 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:50969) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z1fzO-00073D-Q7 for 20744@debbugs.gnu.org; Sun, 07 Jun 2015 15:12:11 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NPL0040096Z1T00@a-mtaout20.012.net.il> for 20744@debbugs.gnu.org; Sun, 07 Jun 2015 22:12:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NPL003ZI9C4Z440@a-mtaout20.012.net.il>; Sun, 07 Jun 2015 22:12:04 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:103714 Archived-At: > From: Glenn Morris > Cc: Da Zhang , 20744@debbugs.gnu.org > Date: Sun, 07 Jun 2015 14:01:31 -0400 > > Eli Zaretskii wrote: > > > I'm sorry, but I don't see how we can accept such a change: it means > > that when the Cygwin Bash is used as the shell, the ':' character will > > not be quoted, which I think could cause trouble in some cases. > > > > Maybe some Bash expert could chime in and tell whether problems are > > possible with Bash in this case. > > Not an expert (and didn't read the rest of the report), but I can't > think of a reason why ':' would need quoting in Bash (unlike eg ';' or '&'). > What kind of thing are you thinking of? PATH-style lists, maybe. Anyway, if we think ':' doesn't need to be quoted, how about removing it from the Posix branch of shell-quote-argument? Then we won't need ugly hacks that try to detect Cygwin Bash used from a native Windows Emacs.