From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#2607: marked as done (23.0.90; `system-type' test in `shell-quote-wildcard-pattern') Date: Sat, 28 Mar 2009 12:35:02 +0000 Message-ID: References: <005601c9a07f$96946c50$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1238243702-28867-0" X-Trace: ger.gmane.org 1238244252 23216 80.91.229.12 (28 Mar 2009 12:44:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2009 12:44:12 +0000 (UTC) To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 28 13:45:29 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LnXui-0005Oo-9M for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Mar 2009 13:45:28 +0100 Original-Received: from localhost ([127.0.0.1]:53591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnXtL-0002yS-1K for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Mar 2009 08:44:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnXtF-0002w7-K3 for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 08:43:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnXtA-0002pV-Jw for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 08:43:57 -0400 Original-Received: from [199.232.76.173] (port=37560 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnXtA-0002pI-GD for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 08:43:52 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40894) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LnXt5-00069v-QB; Sat, 28 Mar 2009 08:43:48 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2SChjXY031467; Sat, 28 Mar 2009 05:43:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2SCZ2D8028893; Sat, 28 Mar 2009 05:35:02 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 2607 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26705 Archived-At: This is a multi-part message in MIME format... ------------=_1238243702-28867-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sat, 28 Mar 2009 15:27:04 +0300 with message-id and subject line Re: bug#2607: 23.0.90; `system-type' test in `shell-quote-= wildcard-pattern' has caused the Emacs bug report #2607, regarding 23.0.90; `system-type' test in `shell-quote-wildcard-pattern' to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 2607: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D2607 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1238243702-28867-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 9 Mar 2009 06:23:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n296NlZQ013966 for ; Sun, 8 Mar 2009 23:23:49 -0700 Received: from mail.gnu.org ([66.92.78.42]:35000 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LgYtv-0007fN-7T for emacs-pretest-bug@gnu.org; Mon, 09 Mar 2009 02:23:47 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LgYto-0003Hr-LV for emacs-pretest-bug@gnu.org; Mon, 09 Mar 2009 02:23:46 -0400 Received: from acsinet11.oracle.com ([141.146.126.233]:53665) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LgYto-0003Hh-3N for emacs-pretest-bug@gnu.org; Mon, 09 Mar 2009 02:23:40 -0400 Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n296OFPA008619 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 9 Mar 2009 06:24:16 GMT Received: from acsmt703.oracle.com (acsmt703.oracle.com [141.146.40.81]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n296NmlH017911 for ; Mon, 9 Mar 2009 06:23:49 GMT Received: from dradamslap1 (/141.144.168.181) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 09 Mar 2009 06:23:33 +0000 From: "Drew Adams" To: Subject: 23.0.90; `system-type' test in `shell-quote-wildcard-pattern' Date: Sun, 8 Mar 2009 23:23:39 -0700 Message-ID: <005601c9a07f$96946c50$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acmgf5YOpAFjtMUjTBuJDuQHV1dEtw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt703.oracle.com [141.146.40.81] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.49B4B5E6.021F:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) This is not so much a bug report as a report of a possible bug, or at least a question. The code of `shell-quote-wildcard-pattern' has this test: (memq system-type '(ms-dos windows-nt cygwin)). Looking at that code, the inclusion of `cygwin' here seems suspect to me. The Elisp manual says only that a `system-type' of `cygwin' means Emacs running on Cygwin ("type of operating system Emacs is operating on"). Dunno what that means, really, but I'm guessing that such a system would use a shell, such as `bash', that treats characters in file names similarly to how `bash' treats them for GNU/Linux or UNIX. I use Emacs on Windows, but not built on Cygwin. I use it with Cygwin and with `bash' as my shell, however, and that is how the shell behaves for me. I have no problem with `shell-quote-wildcard-pattern' AFAIK (my `system-type' is `windows-nt'), but I'm guessing that someone with a `system-type' of `cygwin' might have trouble with it. If these guesses are wrong, then please ignore this report. If these guesses are correct, then perhaps `cygwin' should be removed from that `system-type' test. The code would then treat `cygwin' Emacs like Emacs on UNIX or GNU/Linux, as far as quoting file-name chars in shell commands is concerned. In GNU Emacs 23.0.90.1 (i386-mingw-nt5.1.2600) of 2009-02-01 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' ------------=_1238243702-28867-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2607-done) by emacsbugs.donarmstrong.com; 28 Mar 2009 12:29:17 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout6.012.net.il (mtaout6.012.net.il [84.95.2.16]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2SCTD40027533 for <2607-done@emacsbugs.donarmstrong.com>; Sat, 28 Mar 2009 05:29:15 -0700 Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KH700000UM1M300@i-mtaout6.012.net.il> for 2607-done@emacsbugs.donarmstrong.com; Sat, 28 Mar 2009 15:29:07 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.127.23.114]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KH7006OVUOID1D0@i-mtaout6.012.net.il>; Sat, 28 Mar 2009 15:29:07 +0300 (IDT) Date: Sat, 28 Mar 2009 15:27:04 +0300 From: Eli Zaretskii Subject: Re: bug#2607: 23.0.90; `system-type' test in `shell-quote-wildcard-pattern' In-reply-to: X-012-Sender: halo1@inter.net.il To: Stefan Monnier Cc: 2607-done@emacsbugs.donarmstrong.com, drew.adams@oracle.com Reply-to: Eli Zaretskii Message-id: References: <005601c9a07f$96946c50$0200a8c0@us.oracle.com> > From: Stefan Monnier > Cc: 2607@emacsbugs.donarmstrong.com, drew.adams@oracle.com > Date: Tue, 10 Mar 2009 22:02:30 -0400 > > I think I understand: idempotency is actually not important, and is not > really what is meant by the 2 lines. > Indeed (shell-quote-wildcard-pattern "\\'foo*") => "\\\\'foo*" > so it's not idempotent: \ can be used to escape [*?\] but not [;<>&|()'"#$]. > > How 'bout something like: > > Quote characters special to the shell in pattern, leave wildcards alone. > > PATTERN should be a file-name wildcard pattern suitable for the > underlying filesystem. PATTERN can use \ under Unix and " in Windows > to quote wildcard characters. I installed something similar. ------------=_1238243702-28867-0--