From eliz@gnu.org Mon Oct 20 09:04:47 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.5 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Oct 2008 16:04:48 +0000 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 m9KG4ecO023248 for ; Mon, 20 Oct 2008 09:04:41 -0700 Received: from mail.gnu.org ([199.232.76.166]:53988 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KrxCj-0001zg-Cd for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 12:02:01 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KrxFH-000251-Mm for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 12:04:40 -0400 Received: from mtaout2.012.net.il ([84.95.2.4]:37516) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KrxFH-00024j-AO for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 12:04:39 -0400 Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K9100KFAOQ5UB61@i_mtaout2.012.net.il> for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 18:06:05 +0200 (IST) Date: Mon, 20 Oct 2008 18:04:41 +0200 From: Eli Zaretskii Subject: 23.0.60; split-string-and-unquote problems X-012-Sender: halo1@inter.net.il To: emacs-pretest-bug@gnu.org Message-id: X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: The function split-string-and-unquote is a great help in taking apart shell command lines, but the values it returns seem incorrect in some situations, at least from shell command quoting perspective: (split-string-and-unquote "foo\ bar") => ("foobar") [where's my blank?] (split-string-and-unquote "foo\\\ bar") => ("foo\\bar") [where's my blank?] (split-string-and-unquote "foo\" \"bar") => ("foo" " " "bar") [where's my blank] (split-string-and-unquote "foo\"*\"bar") => ("foo" "*" "bar") [can't quote in the middle of a string?] (split-string-and-unquote "foo\\\"bar") => End of file during parsing [how do you quote a quote?] Also, it doesn't support '..' quoting, which is quite frequent in shell commands. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file d:/gnu/emacs/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-10-20 on HOME-C4E4A596F7 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1255 default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-SPC M-w C-x b C-y M-: * M-: C-SPC C-e M-w C-y SPC = > SPC C-x b C-a C-SPC M-w C-x b C-y M-: C-SPC C-a M-w C-y SPC = > SPC C-a M-: C-SPC C-e M-w C-y M-: \ M-: \ M-: C-SPC C-e M-w C-y SPC = > SPC C-x b C-SPC M-w C-x b C-y C-x M-x r e p o r t - e m a Recent messages: ("foo" "*" "bar") [2 times] Mark set [3 times] split-string-and-unquote: End of file during parsing Mark set split-string-and-unquote: End of file during parsing Mark set [2 times] ("foo\\" "bar") ("foo\\bar") [2 times] Mark set [3 times] Scanning for dabbrevs...100% From schwab@suse.de Mon Oct 20 10:01:58 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-10.8 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Oct 2008 17:01:58 +0000 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 m9KH1mJ3005864 for ; Mon, 20 Oct 2008 10:01:49 -0700 Received: from mx10.gnu.org ([199.232.76.166]:57760) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kry61-00021w-6j for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 12:59:09 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kry8Z-0003Lh-8h for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 13:01:47 -0400 Received: from ns.suse.de ([195.135.220.2]:53754 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kry8R-0003Fk-Pd; Mon, 20 Oct 2008 13:01:40 -0400 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 815D342688; Mon, 20 Oct 2008 19:06:55 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems References: X-Yow: Here we are in America... when do we collect unemployment? Date: Mon, 20 Oct 2008 19:01:12 +0200 In-Reply-To: (Eli Zaretskii's message of "Mon, 20 Oct 2008 18:04:41 +0200") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Eli Zaretskii writes: > (split-string-and-unquote "foo\ bar") > =3D> ("foobar") [where's my blank?] (elisp)Syntax for Strings. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." From schwab@suse.de Mon Oct 20 10:08:44 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-10.8 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Oct 2008 17:08:44 +0000 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 m9KH8fHD007828 for ; Mon, 20 Oct 2008 10:08:42 -0700 Received: from mx10.gnu.org ([199.232.76.166]:58328) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KryCf-0002L2-Qz for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 13:06:01 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KryFE-0004dv-FU for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 13:08:40 -0400 Received: from cantor.suse.de ([195.135.220.2]:54286 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KryFC-0004dG-Nt; Mon, 20 Oct 2008 13:08:39 -0400 Received: from Relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id D3E4642979; Mon, 20 Oct 2008 19:14:18 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems References: X-Yow: Is this "BIKINI BEACH"? Date: Mon, 20 Oct 2008 19:08:35 +0200 In-Reply-To: (Eli Zaretskii's message of "Mon, 20 Oct 2008 18:04:41 +0200") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Eli Zaretskii writes: > The function split-string-and-unquote is a great help in taking apart > shell command lines, but the values it returns seem incorrect in some > situations, at least from shell command quoting perspective: The docstring of split-string-and-unquote doesn't mention the word "shell" anywhere. Why do you think that "Emacs Lisp quoting" has anything to do with "shell command quoting"? Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." From eliz@gnu.org Mon Oct 20 12:06:11 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.3 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_NIX1 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1212) by emacsbugs.donarmstrong.com; 20 Oct 2008 19:06:11 +0000 Received: from mtaout7.012.net.il (mtaout7.012.net.il [84.95.2.19]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9KJ66hJ005319 for <1212@emacsbugs.donarmstrong.com>; Mon, 20 Oct 2008 12:06:08 -0700 Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K91002F6X4GVAA0@i-mtaout7.012.net.il> for 1212@emacsbugs.donarmstrong.com; Mon, 20 Oct 2008 21:07:29 +0200 (IST) Date: Mon, 20 Oct 2008 21:06:05 +0200 From: Eli Zaretskii Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems In-reply-to: X-012-Sender: halo1@inter.net.il To: Andreas Schwab Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Reply-to: Eli Zaretskii Message-id: References: > From: Andreas Schwab > Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > Date: Mon, 20 Oct 2008 19:01:12 +0200 > > Eli Zaretskii writes: > > > (split-string-and-unquote "foo\ bar") > > => ("foobar") [where's my blank?] > > (elisp)Syntax for Strings. I tried that as well, in the part you omitted. From eliz@gnu.org Mon Oct 20 12:16:17 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Oct 2008 19:16:17 +0000 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 m9KJGEUk007784 for ; Mon, 20 Oct 2008 12:16:15 -0700 Received: from mail.gnu.org ([199.232.76.166]:38122 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Ks0C6-0005k1-W5 for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 15:13:35 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ks0Ee-0005ei-02 for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 15:16:13 -0400 Received: from mtaout2.012.net.il ([84.95.2.4]:64931) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ks0Ed-0005eO-Gs for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 15:16:11 -0400 Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K9100KIGXL9UB52@i_mtaout2.012.net.il> for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 21:17:34 +0200 (IST) Date: Mon, 20 Oct 2008 21:16:09 +0200 From: Eli Zaretskii Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems In-reply-to: X-012-Sender: halo1@inter.net.il To: Andreas Schwab Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-CrossAssassin-Score: 2 > From: Andreas Schwab > Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > Date: Mon, 20 Oct 2008 19:08:35 +0200 > > Why do you think that "Emacs Lisp quoting" has anything to do with > "shell command quoting"? Because I grep'ped Emacs sources for its users. From schwab@suse.de Mon Oct 20 14:28:29 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-10.9 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Oct 2008 21:28:29 +0000 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 m9KLSQBn008115 for ; Mon, 20 Oct 2008 14:28:27 -0700 Received: from mx10.gnu.org ([199.232.76.166]:49081) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Ks2G3-0001nU-18 for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 17:25:47 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ks2Ib-0001yP-0k for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 17:28:25 -0400 Received: from cantor.suse.de ([195.135.220.2]:44253 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ks2IZ-0001xh-1v; Mon, 20 Oct 2008 17:28:23 -0400 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 390CF42990; Mon, 20 Oct 2008 23:34:11 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems References: X-Yow: Well, I'm a classic ANAL RETENTIVE!! And I'm looking for a way to VICARIOUSLY experience some reason to LIVE!! Date: Mon, 20 Oct 2008 23:28:21 +0200 In-Reply-To: (Eli Zaretskii's message of "Mon, 20 Oct 2008 21:16:09 +0200") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Eli Zaretskii writes: >> From: Andreas Schwab >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org >> Date: Mon, 20 Oct 2008 19:08:35 +0200 >>=20 >> Why do you think that "Emacs Lisp quoting" has anything to do with >> "shell command quoting"? > > Because I grep'ped Emacs sources for its users. That does not make it more suitable. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." From schwab@suse.de Mon Oct 20 14:30:42 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-11.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Oct 2008 21:30:42 +0000 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 m9KLUdQm009158 for ; Mon, 20 Oct 2008 14:30:40 -0700 Received: from mail.gnu.org ([199.232.76.166]:49186 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Ks2IC-0001q0-Fx for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 17:28:00 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ks2Kk-0002Dp-NX for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 17:30:39 -0400 Received: from mail.suse.de ([195.135.220.2]:44365 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ks2Kj-0002DY-FS; Mon, 20 Oct 2008 17:30:37 -0400 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id C94B0429C5; Mon, 20 Oct 2008 23:36:25 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems References: X-Yow: .. Once upon a time, four AMPHIBIOUS HOG CALLERS attacked a family of DEFENSELESS, SENSITIVE COIN COLLECTORS and brought DOWN their PROPERTY VALUES!! Date: Mon, 20 Oct 2008 23:30:35 +0200 In-Reply-To: (Eli Zaretskii's message of "Mon, 20 Oct 2008 21:06:05 +0200") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Eli Zaretskii writes: >> From: Andreas Schwab >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org >> Date: Mon, 20 Oct 2008 19:01:12 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> > (split-string-and-unquote "foo\ bar") >> > =3D> ("foobar") [where's my blank?] >>=20 >> (elisp)Syntax for Strings. > > I tried that as well, in the part you omitted. What did you try? Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." From eliz@gnu.org Mon Oct 20 15:36:43 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Oct 2008 22:36:43 +0000 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 m9KMadSM025604 for ; Mon, 20 Oct 2008 15:36:40 -0700 Received: from mail.gnu.org ([199.232.76.166]:53365 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Ks3K4-0005TS-58 for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 18:34:00 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ks3Mc-0002KC-Cm for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 18:36:38 -0400 Received: from mtaout4.012.net.il ([84.95.2.10]:62076) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ks3Mc-0002K2-1Y for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 18:36:38 -0400 Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K92004KY6VGY5Y2@i_mtaout4.012.net.il> for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 00:38:04 +0200 (IST) Date: Tue, 21 Oct 2008 00:36:39 +0200 From: Eli Zaretskii Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems In-reply-to: X-012-Sender: halo1@inter.net.il To: Andreas Schwab Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 > From: Andreas Schwab > Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > Date: Mon, 20 Oct 2008 23:30:35 +0200 > > Eli Zaretskii writes: > > >> From: Andreas Schwab > >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > >> Date: Mon, 20 Oct 2008 19:01:12 +0200 > >> > >> Eli Zaretskii writes: > >> > >> > (split-string-and-unquote "foo\ bar") > >> > => ("foobar") [where's my blank?] > >> > >> (elisp)Syntax for Strings. > > > > I tried that as well, in the part you omitted. > > What did you try? The other inputs, see my original mail. From eliz@gnu.org Mon Oct 20 15:53:34 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.1 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Oct 2008 22:53:35 +0000 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 m9KMrU5o029394 for ; Mon, 20 Oct 2008 15:53:31 -0700 Received: from mx10.gnu.org ([199.232.76.166]:54256) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Ks3aN-0006DZ-24 for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 18:50:51 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ks3cv-0003vh-7r for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 18:53:29 -0400 Received: from mtaout2.012.net.il ([84.95.2.4]:31597) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ks3cu-0003vZ-RD; Mon, 20 Oct 2008 18:53:29 -0400 Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K9200MZ47NIHU20@i_mtaout2.012.net.il>; Tue, 21 Oct 2008 00:54:55 +0200 (IST) Date: Tue, 21 Oct 2008 00:53:30 +0200 From: Eli Zaretskii Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems In-reply-to: X-012-Sender: halo1@inter.net.il To: Andreas Schwab Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org, emacs-devel@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 > From: Andreas Schwab > Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > Date: Mon, 20 Oct 2008 23:28:21 +0200 > > Eli Zaretskii writes: > > >> From: Andreas Schwab > >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > >> Date: Mon, 20 Oct 2008 19:08:35 +0200 > >> > >> Why do you think that "Emacs Lisp quoting" has anything to do with > >> "shell command quoting"? > > > > Because I grep'ped Emacs sources for its users. > > That does not make it more suitable. You know, since you evidently know better, how about if you explained what that pair of functions is supposed to do, exactly, and what are their intended uses? The doc strings fall short by a large margin, and NEWS had this to say about these functions: *** `split-string-and-unquote' does (what?) *** `combine-and-quote-strings' does (what?) If I can understand the explanation, maybe I could produce from it a suitable section of the ELisp manual, which is the reason why I started to play with split-string-and-unquote. Failing that, I will stick to my interpretation. Here's what I wrote in the ELisp manual about these two functions; comments and corrections, if someone has them, are greatly appreciated: @cindex quoting and unquoting shell command line The following two functions help creating shell commands from individual argument strings and taking shell command lines apart into individual arguments. @defun split-string-and-unquote string &optional separators This function splits @var{string} into substrings at matches for the regular expression @var{separators}, like @code{split-string} does (@pxref{Creating Strings}), but it additionally removes quoting from the substrings. It then makes a list of the substrings and returns it. If @var{separators} is omitted or nil, it defaults to @code{"\\s-+"}, which is a regular expression that matches one or more characters with whitespace syntax (@pxref{Syntax Class Table}). The quoting this function supports is of 2 styles: by enclosing a whole string in double quotes @code{"@dots{}"}, or by quoting individual characters with a backslash escape @samp{\}. The latter is also used in Lisp strings, so this function can handle those as well. @end defun @defun combine-and-quote-strings list-of-strings &optional separator This function concatenates @var{list-of-strings} into a single string, quoting each string in the list that needs quoting as it goes. It also sticks the @var{separator} string in between each pair of strings in the result, and returns that result. If @var{separator} is omitted or @code{nil}, it defaults to a blank @code{" "}. The strings in @var{list-of-strings} that need quoting are those that include @var{separator} as their substring. Quoting a string encloses it in double quotes @code{"@dots{}"}. In the simplest case, if you are consing a shell command from the individual command-line arguments, every argument that includes embedded blanks will be quoted. @end defun From monnier@iro.umontreal.ca Mon Oct 20 18:11:18 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.9 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 01:11:18 +0000 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 m9L1BEZD000321 for ; Mon, 20 Oct 2008 18:11:16 -0700 Received: from mail.gnu.org ([199.232.76.166]:35967 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Ks5jf-0003PV-5w for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 21:08:35 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ks5mE-000128-1b for emacs-pretest-bug@gnu.org; Mon, 20 Oct 2008 21:11:14 -0400 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:18522 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ks5mC-00011t-N3; Mon, 20 Oct 2008 21:11:12 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EAD/J/EhFxLrB/2dsb2JhbACBcsFtg1CBCg X-IronPort-AV: E=Sophos;i="4.33,454,1220241600"; d="scan'208";a="28633077" Received: from 69-196-186-193.dsl.teksavvy.com (HELO pastel.home) ([69.196.186.193]) by ironport2-out.teksavvy.com with ESMTP; 20 Oct 2008 21:11:10 -0400 Received: by pastel.home (Postfix, from userid 20848) id 50D387F20; Mon, 20 Oct 2008 21:11:10 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Cc: Andreas Schwab , emacs-pretest-bug@gnu.org, 1212@debbugs.gnu.org, emacs-devel@gnu.org Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems Message-ID: References: Date: Mon, 20 Oct 2008 21:11:10 -0400 In-Reply-To: (Eli Zaretskii's message of "Tue, 21 Oct 2008 00:53:30 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. > *** `split-string-and-unquote' does (what?) > *** `combine-and-quote-strings' does (what?) AFAIK, these two functions are meant to: - provide a way to specify any list of strings within a single string (i.e. it needs to provide some separators and some way to quote the separators), using a format that's simple to type for the end user. - be inverse of each other; more precisely (equal STR (split-string-and-unquote (combine-and-quote-strings STR))) this is also stipulated in the docstring of split-string-and-unquote. As the docstring of split-string-and-unquote explains, the quoting used is the same as the one used for ELisp strings. I could have used sh-style quoting or csh-style, or any other style, but csh-style is nasty, sh-style is too powerful (what should we do with backquotes and $(...)), and ELisp is what Emacs uses already and it's reasonably simple and we know it handles all cases reasonably well, so it seemed like an OK choice. Stefan From schwab@suse.de Tue Oct 21 02:25:42 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-10.9 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 09:25:42 +0000 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 m9L9PdHS026668 for ; Tue, 21 Oct 2008 02:25:40 -0700 Received: from mx10.gnu.org ([199.232.76.166]:36954) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsDS7-0000du-Dn for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 05:22:59 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsDUg-0008RF-5n for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 05:25:38 -0400 Received: from cantor2.suse.de ([195.135.220.15]:53441 helo=mx2.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsDUe-0008QT-8F; Tue, 21 Oct 2008 05:25:36 -0400 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 059E946535; Tue, 21 Oct 2008 11:31:42 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems References: X-Yow: I'm having a RELIGIOUS EXPERIENCE.. and I don't take any DRUGS Date: Tue, 21 Oct 2008 11:25:33 +0200 In-Reply-To: (Eli Zaretskii's message of "Tue, 21 Oct 2008 00:36:39 +0200") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Eli Zaretskii writes: >> From: Andreas Schwab >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org >> Date: Mon, 20 Oct 2008 23:30:35 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> >> From: Andreas Schwab >> >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org >> >> Date: Mon, 20 Oct 2008 19:01:12 +0200 >> >>=20 >> >> Eli Zaretskii writes: >> >>=20 >> >> > (split-string-and-unquote "foo\ bar") >> >> > =3D> ("foobar") [where's my blank?] >> >>=20 >> >> (elisp)Syntax for Strings. >> > >> > I tried that as well, in the part you omitted. >>=20 >> What did you try? > > The other inputs, see my original mail. Please read the node again. There is no blank. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." From eliz@gnu.org Tue Oct 21 03:18:10 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 10:18:10 +0000 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 m9LAI7YH006810 for ; Tue, 21 Oct 2008 03:18:08 -0700 Received: from mx10.gnu.org ([199.232.76.166]:40287) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsEGs-0004hO-Tu for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 06:15:27 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsEJR-0007lx-MD for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 06:18:06 -0400 Received: from mtaout1.012.net.il ([84.95.2.1]:40447) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsEJR-0007lf-5d for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 06:18:05 -0400 Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K9300F023CKRM80@i-mtaout1.012.net.il> for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 12:19:32 +0200 (IST) Date: Tue, 21 Oct 2008 12:18:08 +0200 From: Eli Zaretskii Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems In-reply-to: X-012-Sender: halo1@inter.net.il To: Andreas Schwab Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-CrossAssassin-Score: 2 > From: Andreas Schwab > Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > Date: Tue, 21 Oct 2008 11:25:33 +0200 > > Eli Zaretskii writes: > > >> From: Andreas Schwab > >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > >> Date: Mon, 20 Oct 2008 23:30:35 +0200 > >> > >> Eli Zaretskii writes: > >> > >> >> From: Andreas Schwab > >> >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > >> >> Date: Mon, 20 Oct 2008 19:01:12 +0200 > >> >> > >> >> Eli Zaretskii writes: > >> >> > >> >> > (split-string-and-unquote "foo\ bar") > >> >> > => ("foobar") [where's my blank?] > >> >> > >> >> (elisp)Syntax for Strings. > >> > > >> > I tried that as well, in the part you omitted. > >> > >> What did you try? > > > > The other inputs, see my original mail. > > Please read the node again. There is no blank. Please read my questions again, in the original report. From schwab@suse.de Tue Oct 21 04:00:45 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-10.9 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 11:00:45 +0000 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 m9LB0gsk017334 for ; Tue, 21 Oct 2008 04:00:43 -0700 Received: from mail.gnu.org ([199.232.76.166]:43345 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsEw6-0005tQ-I8 for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 06:58:02 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsEyf-00021N-At for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 07:00:41 -0400 Received: from mx2.suse.de ([195.135.220.15]:34144) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsEyd-0001yu-E6; Tue, 21 Oct 2008 07:00:39 -0400 Received: from Relay2.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 713F2464E5; Tue, 21 Oct 2008 13:00:35 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems References: X-Yow: Ask me the DIFFERENCE between PHIL SILVERS and ALEXANDER HAIG!! Date: Tue, 21 Oct 2008 13:00:35 +0200 In-Reply-To: (Eli Zaretskii's message of "Tue, 21 Oct 2008 12:18:08 +0200") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Eli Zaretskii writes: >> From: Andreas Schwab >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org >> Date: Tue, 21 Oct 2008 11:25:33 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> >> From: Andreas Schwab >> >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org >> >> Date: Mon, 20 Oct 2008 23:30:35 +0200 >> >>=20 >> >> Eli Zaretskii writes: >> >>=20 >> >> >> From: Andreas Schwab >> >> >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org >> >> >> Date: Mon, 20 Oct 2008 19:01:12 +0200 >> >> >>=20 >> >> >> Eli Zaretskii writes: >> >> >>=20 >> >> >> > (split-string-and-unquote "foo\ bar") >> >> >> > =3D> ("foobar") [where's my blank?] ^^^^^^^^^^^^^^^^^ >> >> >>=20 >> >> >> (elisp)Syntax for Strings. >> >> > >> >> > I tried that as well, in the part you omitted. >> >>=20 >> >> What did you try? >> > >> > The other inputs, see my original mail. >>=20 >> Please read the node again. There is no blank. > > Please read my questions again, in the original report. I did, see above. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." From eliz@gnu.org Tue Oct 21 04:34:10 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,RCVD_IN_NIX1 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 11:34:10 +0000 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 m9LBY7Ux025243 for ; Tue, 21 Oct 2008 04:34:08 -0700 Received: from mx10.gnu.org ([199.232.76.166]:46447) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsFSR-0004jg-0I for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 07:31:27 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsFUz-0001HU-TI for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 07:34:06 -0400 Received: from mtaout6.012.net.il ([84.95.2.16]:38331) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsFUz-0001Gk-Aw for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 07:34:05 -0400 Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K9300EQJ6UXXD00@i-mtaout6.012.net.il> for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 13:35:30 +0200 (IST) Date: Tue, 21 Oct 2008 13:33:56 +0200 From: Eli Zaretskii Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems In-reply-to: X-012-Sender: halo1@inter.net.il To: Andreas Schwab Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) > From: Andreas Schwab > Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > Date: Tue, 21 Oct 2008 13:00:35 +0200 > > Eli Zaretskii writes: > > >> From: Andreas Schwab > >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > >> Date: Tue, 21 Oct 2008 11:25:33 +0200 > >> > >> Eli Zaretskii writes: > >> > >> >> From: Andreas Schwab > >> >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > >> >> Date: Mon, 20 Oct 2008 23:30:35 +0200 > >> >> > >> >> Eli Zaretskii writes: > >> >> > >> >> >> From: Andreas Schwab > >> >> >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > >> >> >> Date: Mon, 20 Oct 2008 19:01:12 +0200 > >> >> >> > >> >> >> Eli Zaretskii writes: > >> >> >> > >> >> >> > (split-string-and-unquote "foo\ bar") > >> >> >> > => ("foobar") [where's my blank?] > ^^^^^^^^^^^^^^^^^ > >> >> >> > >> >> >> (elisp)Syntax for Strings. > >> >> > > >> >> > I tried that as well, in the part you omitted. > >> >> > >> >> What did you try? > >> > > >> > The other inputs, see my original mail. > >> > >> Please read the node again. There is no blank. > > > > Please read my questions again, in the original report. > > I did, see above. Which part of "the other inputs" did you misunderstand? From schwab@suse.de Tue Oct 21 04:49:29 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-11.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 11:49:29 +0000 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 m9LBnQn9028921 for ; Tue, 21 Oct 2008 04:49:27 -0700 Received: from mx10.gnu.org ([199.232.76.166]:48515) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsFhE-0006Zk-9M for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 07:46:45 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsFjg-00054M-5i for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 07:49:20 -0400 Received: from cantor2.suse.de ([195.135.220.15]:37416 helo=mx2.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsFjV-0004zX-8H; Tue, 21 Oct 2008 07:49:05 -0400 Received: from Relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 238FA4652C; Tue, 21 Oct 2008 13:49:03 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems References: X-Yow: How's it going in those MODULAR LOVE UNITS?? Date: Tue, 21 Oct 2008 13:49:02 +0200 In-Reply-To: (Eli Zaretskii's message of "Tue, 21 Oct 2008 13:33:56 +0200") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Eli Zaretskii writes: >> From: Andreas Schwab >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org >> Date: Tue, 21 Oct 2008 13:00:35 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> >> From: Andreas Schwab >> >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org >> >> Date: Tue, 21 Oct 2008 11:25:33 +0200 >> >>=20 >> >> Eli Zaretskii writes: >> >>=20 >> >> >> From: Andreas Schwab >> >> >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org >> >> >> Date: Mon, 20 Oct 2008 23:30:35 +0200 >> >> >>=20 >> >> >> Eli Zaretskii writes: >> >> >>=20 >> >> >> >> From: Andreas Schwab >> >> >> >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.or= g >> >> >> >> Date: Mon, 20 Oct 2008 19:01:12 +0200 >> >> >> >>=20 >> >> >> >> Eli Zaretskii writes: >> >> >> >>=20 >> >> >> >> > (split-string-and-unquote "foo\ bar") >> >> >> >> > =3D> ("foobar") [where's my blank?] >> ^^^^^^^^^^^^^^^^^ >> >> >> >>=20 >> >> >> >> (elisp)Syntax for Strings. >> >> >> > >> >> >> > I tried that as well, in the part you omitted. >> >> >>=20 >> >> >> What did you try? >> >> > >> >> > The other inputs, see my original mail. >> >>=20 >> >> Please read the node again. There is no blank. >> > >> > Please read my questions again, in the original report. >>=20 >> I did, see above. > > Which part of "the other inputs" did you misunderstand? This is completely irrelevant. I have answered _only_ your question above. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." From eliz@gnu.org Tue Oct 21 05:26:56 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,RCVD_IN_NIX1 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 12:26:56 +0000 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 m9LCQqgh006804 for ; Tue, 21 Oct 2008 05:26:53 -0700 Received: from mx10.gnu.org ([199.232.76.166]:53395) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsGHT-0002JW-Nb for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 08:24:11 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsGK2-0005tu-Bw for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 08:26:51 -0400 Received: from mtaout4.012.net.il ([84.95.2.10]:13297) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsGK1-0005t2-Ht for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 08:26:49 -0400 Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K930056O990J0Z0@i_mtaout4.012.net.il> for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 14:27:25 +0200 (IST) Date: Tue, 21 Oct 2008 14:25:32 +0200 From: Eli Zaretskii Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems In-reply-to: X-012-Sender: halo1@inter.net.il To: Andreas Schwab Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 > From: Andreas Schwab > Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > Date: Tue, 21 Oct 2008 13:49:02 +0200 > > Eli Zaretskii writes: > > >> From: Andreas Schwab > >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > >> Date: Tue, 21 Oct 2008 13:00:35 +0200 > >> > >> Eli Zaretskii writes: > >> > >> >> From: Andreas Schwab > >> >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > >> >> Date: Tue, 21 Oct 2008 11:25:33 +0200 > >> >> > >> >> Eli Zaretskii writes: > >> >> > >> >> >> From: Andreas Schwab > >> >> >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > >> >> >> Date: Mon, 20 Oct 2008 23:30:35 +0200 > >> >> >> > >> >> >> Eli Zaretskii writes: > >> >> >> > >> >> >> >> From: Andreas Schwab > >> >> >> >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > >> >> >> >> Date: Mon, 20 Oct 2008 19:01:12 +0200 > >> >> >> >> > >> >> >> >> Eli Zaretskii writes: > >> >> >> >> > >> >> >> >> > (split-string-and-unquote "foo\ bar") > >> >> >> >> > => ("foobar") [where's my blank?] > >> ^^^^^^^^^^^^^^^^^ > >> >> >> >> > >> >> >> >> (elisp)Syntax for Strings. > >> >> >> > > >> >> >> > I tried that as well, in the part you omitted. > >> >> >> > >> >> >> What did you try? > >> >> > > >> >> > The other inputs, see my original mail. > >> >> > >> >> Please read the node again. There is no blank. > >> > > >> > Please read my questions again, in the original report. > >> > >> I did, see above. > > > > Which part of "the other inputs" did you misunderstand? > > This is completely irrelevant. I have answered _only_ your question > above. The answer to that specific question is completely irrelevant to the problem I reported in the original bug report. You need to consider all the examples and questions together. From schwab@suse.de Tue Oct 21 05:50:43 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-11.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 12:50:43 +0000 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 m9LCoeqQ012718 for ; Tue, 21 Oct 2008 05:50:41 -0700 Received: from mail.gnu.org ([199.232.76.166]:55693 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsGeW-0006Oq-DM for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 08:48:00 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsGh4-0002Cs-2Y for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 08:50:40 -0400 Received: from ns.suse.de ([195.135.220.2]:53082 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsGh0-0002Ap-Bo; Tue, 21 Oct 2008 08:50:34 -0400 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 10CBC4295D; Tue, 21 Oct 2008 14:50:31 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems References: X-Yow: "DARK SHADOWS" is on!! Hey, I think the VAMPIRE forgot his UMBRELLA!! Date: Tue, 21 Oct 2008 14:50:30 +0200 In-Reply-To: (Eli Zaretskii's message of "Tue, 21 Oct 2008 14:25:32 +0200") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Eli Zaretskii writes: > The answer to that specific question is completely irrelevant to the > problem I reported in the original bug report. You need to consider > all the examples and questions together. It makes half of your examples useless. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." From eliz@gnu.org Tue Oct 21 05:58:16 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,RCVD_IN_NIX1 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 12:58:16 +0000 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 m9LCwAKg013926 for ; Tue, 21 Oct 2008 05:58:11 -0700 Received: from mail.gnu.org ([199.232.76.166]:56360 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsGlm-0007AZ-DI for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 08:55:30 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsGoL-0003LK-QG for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 08:58:10 -0400 Received: from mtaout3.012.net.il ([84.95.2.7]:12455) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsGoL-0003L8-GA for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 08:58:09 -0400 Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K93004XMAR2ZOI0@i_mtaout3.012.net.il> for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 14:59:37 +0200 (IST) Date: Tue, 21 Oct 2008 14:58:01 +0200 From: Eli Zaretskii Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems In-reply-to: X-012-Sender: halo1@inter.net.il To: Andreas Schwab Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 > X-Spam-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00, > DNS_FROM_SECURITYSAGE autolearn=no version=3.1.0 > From: Andreas Schwab > Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > Date: Tue, 21 Oct 2008 14:50:30 +0200 > > Eli Zaretskii writes: > > > The answer to that specific question is completely irrelevant to the > > problem I reported in the original bug report. You need to consider > > all the examples and questions together. > > It makes half of your examples useless. I made a lot of trials out of sheer despair. The examples were supposed to demonstrate that nothing worked. From schwab@suse.de Tue Oct 21 06:24:20 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-11.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 13:24:20 +0000 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 m9LDOHUq020640 for ; Tue, 21 Oct 2008 06:24:18 -0700 Received: from mail.gnu.org ([199.232.76.166]:58579 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsHB3-0005Gr-0m for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 09:21:37 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsHDb-0007LF-Tk for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 09:24:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:44236) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsHDZ-0007Kc-Uy; Tue, 21 Oct 2008 09:24:14 -0400 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 7F7F04644C; Tue, 21 Oct 2008 15:24:11 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems References: X-Yow: I want to so HAPPY, the VEINS in my neck STAND OUT!! Date: Tue, 21 Oct 2008 15:24:11 +0200 In-Reply-To: (Eli Zaretskii's message of "Tue, 21 Oct 2008 14:58:01 +0200") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Eli Zaretskii writes: >> X-Spam-Status: No, score=3D-1.7 required=3D5.0 tests=3DAWL,BAYES_00, >> DNS_FROM_SECURITYSAGE autolearn=3Dno version=3D3.1.0 >> From: Andreas Schwab >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org >> Date: Tue, 21 Oct 2008 14:50:30 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> > The answer to that specific question is completely irrelevant to the >> > problem I reported in the original bug report. You need to consider >> > all the examples and questions together. >>=20 >> It makes half of your examples useless. > > I made a lot of trials out of sheer despair. The examples were > supposed to demonstrate that nothing worked. Of course, if there is nothing to split. What's your point? Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." From eliz@gnu.org Tue Oct 21 06:36:59 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,RCVD_IN_NIX1 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 13:36:59 +0000 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 m9LDaoZk024301 for ; Tue, 21 Oct 2008 06:36:52 -0700 Received: from mail.gnu.org ([199.232.76.166]:59517 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsHNC-0003qQ-Nb for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 09:34:10 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsHPl-0000rV-Jy for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 09:36:50 -0400 Received: from mtaout1.012.net.il ([84.95.2.1]:61236) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsHPl-0000rB-7g for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 09:36:49 -0400 Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K9300BLOCJSSO20@i-mtaout1.012.net.il> for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 15:38:16 +0200 (IST) Date: Tue, 21 Oct 2008 15:36:52 +0200 From: Eli Zaretskii Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems In-reply-to: X-012-Sender: halo1@inter.net.il To: Andreas Schwab Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-CrossAssassin-Score: 2 > From: Andreas Schwab > Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > Date: Tue, 21 Oct 2008 15:24:11 +0200 > > Eli Zaretskii writes: > > >> X-Spam-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00, > >> DNS_FROM_SECURITYSAGE autolearn=no version=3.1.0 > >> From: Andreas Schwab > >> Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > >> Date: Tue, 21 Oct 2008 14:50:30 +0200 > >> > >> Eli Zaretskii writes: > >> > >> > The answer to that specific question is completely irrelevant to the > >> > problem I reported in the original bug report. You need to consider > >> > all the examples and questions together. > >> > >> It makes half of your examples useless. > > > > I made a lot of trials out of sheer despair. The examples were > > supposed to demonstrate that nothing worked. > > Of course, if there is nothing to split. What's your point? The point is that the function says it also _unquotes_. It's the unquoting that didn't work for me in the cases I described in the bug report. Adding more text just so it could split doesn't change the problematic behavior, but would clutter the bug report with irrelevant details. From schwab@suse.de Tue Oct 21 06:44:53 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-11.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 13:44:53 +0000 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 m9LDioOt025706 for ; Tue, 21 Oct 2008 06:44:51 -0700 Received: from mx10.gnu.org ([199.232.76.166]:60164) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsHUw-0005EV-5q for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 09:42:10 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsHXV-00020U-7l for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 09:44:49 -0400 Received: from cantor.suse.de ([195.135.220.2]:57319 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsHXS-0001zf-NY; Tue, 21 Oct 2008 09:44:47 -0400 Received: from Relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id A4A0B42A1A; Tue, 21 Oct 2008 15:44:44 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems References: X-Yow: I've got to get these SNACK CAKES to NEWARK by DAWN!! Date: Tue, 21 Oct 2008 15:44:44 +0200 In-Reply-To: (Eli Zaretskii's message of "Tue, 21 Oct 2008 15:36:52 +0200") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Eli Zaretskii writes: > The point is that the function says it also _unquotes_. Why did you emphasize on the missing blank then? Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." From eliz@gnu.org Tue Oct 21 08:14:19 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,RCVD_IN_NIX1 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2008 15:14:19 +0000 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 m9LFEFBd016086 for ; Tue, 21 Oct 2008 08:14:16 -0700 Received: from mail.gnu.org ([199.232.76.166]:42662 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsItT-0005yX-6n for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 11:11:35 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsIw1-00048N-Qg for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 11:14:14 -0400 Received: from mtaout7.012.net.il ([84.95.2.19]:22812) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsIw1-00047N-66 for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 11:14:13 -0400 Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K9300F6ZH08O150@i-mtaout7.012.net.il> for emacs-pretest-bug@gnu.org; Tue, 21 Oct 2008 17:14:33 +0200 (IST) Date: Tue, 21 Oct 2008 17:13:09 +0200 From: Eli Zaretskii Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems In-reply-to: X-012-Sender: halo1@inter.net.il To: Andreas Schwab Cc: 1212@debbugs.gnu.org, emacs-pretest-bug@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) > From: Andreas Schwab > Cc: 1212@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org > Date: Tue, 21 Oct 2008 15:44:44 +0200 > > Eli Zaretskii writes: > > > The point is that the function says it also _unquotes_. > > Why did you emphasize on the missing blank then? Because I couldn't find any way of quoting embedded blanks with backslashes, something frequently done in shell commands. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 11 04:44:23 2010 Received: (at 1212-done) by debbugs.gnu.org; 11 Dec 2010 09:44:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRM07-0001ve-B3 for submit@debbugs.gnu.org; Sat, 11 Dec 2010 04:44:23 -0500 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRM04-0001vN-8E; Sat, 11 Dec 2010 04:44:21 -0500 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LD900J00CBP3V00@a-mtaout21.012.net.il>; Sat, 11 Dec 2010 11:50:23 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.142.197]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LD900IM1CNWXB80@a-mtaout21.012.net.il>; Sat, 11 Dec 2010 11:50:22 +0200 (IST) Date: Sat, 11 Dec 2010 11:50:35 +0200 From: Eli Zaretskii Subject: Re: bug#7563: 23.2; `split-string-and-unquote' mis-documented / purpose unclear In-reply-to: X-012-Sender: halo1@inter.net.il To: Dave Abrahams Message-id: <83fwu4vdsk.fsf@gnu.org> References: X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 1212-done Cc: 7563-done@debbugs.gnu.org, 1212-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > Date: Sun, 05 Dec 2010 16:28:16 -0500 > From: Dave Abrahams > Cc: > > This function performs two types of quoting: enclosing a whole > string in double quotes `"..."', and quoting individual characters > with a backslash escape `\'. The latter is also used in Lisp > strings, so this function can handle those as well. > > > First problem: the last paragraph above is simply wrong. > split-string-and-unquote doesn't perform any type of quoting; it > un-quotes. I changed "performs" to "supports". Thanks for catching this. > Second problem: the doc implies that a string that could be executed > by the shell could be split into its constituent arguments by > split-string-and-unquote, but in general, it cannot, e.g.: > > (split-string-and-unquote "'foo bar'") => ("'foo" "bar'") > (split-string-and-unquote "foo\\ bar") => ("foo" "bar") > > I'm not sure what this function is really supposed to be for, but any > implication that it properly handles conversion into shell arguments > is highly misleading. Some motivation should be given for proper use > of split-string-and-unquote, or it should be deprecated. This has come up before; see Bug #1212 and this thread: http://lists.gnu.org/archive/html/emacs-devel/2008-10/msg00431.html The best explanation I can give you is that this function is for taking minibuffer input and converting it to a list of string arguments as required by call-process and start-process. (I added this information to the manual.) Note that the documentation does not mention "shell" anywhere. You could also gain some insight by looking at the users of this function. With those changes, I'm closing this bug report (and 1212 as well), because the issue has been already beaten to death in the above discussion. The changes I made are on the emacs-23 branch, btw, in case you want to eyeball them. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 11 08:37:44 2010 Received: (at 1212-done) by debbugs.gnu.org; 11 Dec 2010 13:37:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRPdv-0007uC-Kb for submit@debbugs.gnu.org; Sat, 11 Dec 2010 08:37:43 -0500 Received: from mail-qy0-f172.google.com ([209.85.216.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRPds-0007tv-Rm; Sat, 11 Dec 2010 08:37:41 -0500 Received: by qyk34 with SMTP id 34so1781753qyk.3 for ; Sat, 11 Dec 2010 05:43:46 -0800 (PST) Received: by 10.224.74.80 with SMTP id t16mr1911887qaj.0.1292075026302; Sat, 11 Dec 2010 05:43:46 -0800 (PST) Received: from zreba.local (207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com [207.172.223.249]) by mx.google.com with ESMTPS id y17sm2718150qci.45.2010.12.11.05.43.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 11 Dec 2010 05:43:45 -0800 (PST) Received: from zreba.local (localhost [127.0.0.1]) by zreba.local (Postfix) with ESMTP id BBC2E3927D88; Sat, 11 Dec 2010 08:43:42 -0500 (EST) Date: Sat, 11 Dec 2010 08:43:42 -0500 Message-ID: From: Dave Abrahams To: Eli Zaretskii Subject: Re: bug#7563: 23.2; `split-string-and-unquote' mis-documented / purpose unclear In-Reply-To: <83fwu4vdsk.fsf@gnu.org> References: <83fwu4vdsk.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/23.2 (x86_64-apple-darwin) MULE/6.0 (HANACHIRUSATO) Organization: BoostPro Computing MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: 1212-done Cc: 7563-done@debbugs.gnu.org, 1212-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.5 (----) At Sat, 11 Dec 2010 11:50:35 +0200, Eli Zaretskii wrote: > > > Date: Sun, 05 Dec 2010 16:28:16 -0500 > > From: Dave Abrahams > > > > This function performs two types of quoting: enclosing a whole > > string in double quotes `"..."', and quoting individual characters > > with a backslash escape `\'. The latter is also used in Lisp > > strings, so this function can handle those as well. > > > > > > First problem: the last paragraph above is simply wrong. > > split-string-and-unquote doesn't perform any type of quoting; it > > un-quotes. > > I changed "performs" to "supports". Thanks for catching this. But it's still wrong, I'm afraid. As I mentioned in my original report, (split-string-and-unquote "foo\\ bar") yields a list of 2 elements (I wrote it wrong below: you get a trailing backslash on "foo\\") > > Second problem: the doc implies that a string that could be executed > > by the shell could be split into its constituent arguments by > > split-string-and-unquote, but in general, it cannot, e.g.: > > > > (split-string-and-unquote "'foo bar'") => ("'foo" "bar'") > > (split-string-and-unquote "foo\\ bar") => ("foo" "bar") > > > > I'm not sure what this function is really supposed to be for, but any > > implication that it properly handles conversion into shell arguments > > is highly misleading. Some motivation should be given for proper use > > of split-string-and-unquote, or it should be deprecated. > > This has come up before; see Bug #1212 and this thread: > > http://lists.gnu.org/archive/html/emacs-devel/2008-10/msg00431.html > > The best explanation I can give you is that this function is for > taking minibuffer input and converting it to a list of string > arguments as required by call-process and start-process. (I added > this information to the manual.) Note that the documentation does not > mention "shell" anywhere. You could also gain some insight by looking > at the users of this function. > > With those changes, I'm closing this bug report (and 1212 as well), > because the issue has been already beaten to death in the above > discussion. The changes I made are on the emacs-23 branch, btw, in > case you want to eyeball them. Well, I'm sorry that the previous discussion was so unpleasant, but: * I disagree strongly that it is a proper resolution: * I spent lots of time trying to suss out what was really going on here and writing a clear bug report. I did that in the hopes that nobody else would waste time trying to figure this out again, and I don't believe that change will prevent it. * The functions' design still has nothing to do with shell quoting; they are hard-coded to work with double-quotes and only double-quotes, which is not guaranteed to work for an arbitrary definition of "shell." * I believe my report is clearer than #1212 as it identifies the cause of the original reporter's confusion, and should be evaluated on its own merits without prejudice. * Having now read the history of this issue, I am strongly convinced that the proper thing to do is deprecate these functions. I'm not sure what Emacs convention is here, but I would do it as follows: * Leave them in the source so nobody's code breaks * Change their documentation in source to note that they are deprecated * Remove their documentation from the manual or move it to an appendix of deprecated functionality. -- Dave Abrahams BoostPro Computing http://www.boostpro.com From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 11 10:45:50 2010 Received: (at 1212-done) by debbugs.gnu.org; 11 Dec 2010 15:45:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRRds-0002Ma-T3 for submit@debbugs.gnu.org; Sat, 11 Dec 2010 10:45:49 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRRdp-0002MF-Uv; Sat, 11 Dec 2010 10:45:46 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LD900F00TEABH00@a-mtaout23.012.net.il>; Sat, 11 Dec 2010 17:51:49 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.142.197]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LD900F5ATEB4P90@a-mtaout23.012.net.il>; Sat, 11 Dec 2010 17:51:49 +0200 (IST) Date: Sat, 11 Dec 2010 17:52:02 +0200 From: Eli Zaretskii Subject: Re: bug#7563: 23.2; `split-string-and-unquote' mis-documented / purpose unclear In-reply-to: X-012-Sender: halo1@inter.net.il To: Dave Abrahams Message-id: <834oakux25.fsf@gnu.org> References: <83fwu4vdsk.fsf@gnu.org> X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 1212-done Cc: 7563-done@debbugs.gnu.org, 1212-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > Date: Sat, 11 Dec 2010 08:43:42 -0500 > From: Dave Abrahams > Cc: 7563-done@debbugs.gnu.org, > 1212-done@debbugs.gnu.org > > > > This function performs two types of quoting: enclosing a whole > > > string in double quotes `"..."', and quoting individual characters > > > with a backslash escape `\'. The latter is also used in Lisp > > > strings, so this function can handle those as well. > > > > > > > > > First problem: the last paragraph above is simply wrong. > > > split-string-and-unquote doesn't perform any type of quoting; it > > > un-quotes. > > > > I changed "performs" to "supports". Thanks for catching this. > > But it's still wrong, I'm afraid. It's not "wrong", in the sense that previously the text made it sound as if split-string-and-unquote could actually _add_ quoting. That is the only thing I intended to fix there. > As I mentioned in my original report, > > (split-string-and-unquote "foo\\ bar") > > yields a list of 2 elements (I wrote it wrong below: you get a > trailing backslash on "foo\\") That's by design; read the discussion I pointed to, where Stefan explained his rationale. You could agree or disagree with him, but evidently these functions are useful in a certain class of situations; see how they are used in a few Lisp packages that come with Emacs. > * I spent lots of time trying to suss out what was really going on > here and writing a clear bug report. I did that in the hopes that > nobody else would waste time trying to figure this out again, and > I don't believe that change will prevent it. Now that the manual explicitly mentions call-process and start-process, which are the clients of this function, what else is missing or unclear? Please be specific. > * The functions' design still has nothing to do with shell quoting; > they are hard-coded to work with double-quotes and only > double-quotes, which is not guaranteed to work for an arbitrary > definition of "shell." I believe the manual says precisely that. If the problem is with mentioning "shell", would removing that solve this difficulty? > * Having now read the history of this issue, I am strongly convinced > that the proper thing to do is deprecate these functions. They were introduced fairly recently, and I'm sure they were added for good reasons. I'll let Stefan respond in detail. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 11 12:51:52 2010 Received: (at 1212-done) by debbugs.gnu.org; 11 Dec 2010 17:51:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRTbr-0005Tb-IC for submit@debbugs.gnu.org; Sat, 11 Dec 2010 12:51:51 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRTbo-0005TA-Ou; Sat, 11 Dec 2010 12:51:49 -0500 Received: by iwn40 with SMTP id 40so1162597iwn.0 for ; Sat, 11 Dec 2010 09:57:54 -0800 (PST) Received: by 10.42.167.193 with SMTP id t1mr1534415icy.238.1292090271702; Sat, 11 Dec 2010 09:57:51 -0800 (PST) Received: from [10.11.136.221] (mobile-166-137-139-040.mycingular.net [166.137.139.40]) by mx.google.com with ESMTPS id gy41sm4032389ibb.23.2010.12.11.09.57.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 11 Dec 2010 09:57:51 -0800 (PST) References: <83fwu4vdsk.fsf@gnu.org> <834oakux25.fsf@gnu.org> In-Reply-To: <834oakux25.fsf@gnu.org> Mime-Version: 1.0 (iPhone Mail 8A400) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <524EC395-B36D-4678-AF93-43C24C9E9745@boostpro.com> X-Mailer: iPhone Mail (8A400) From: Dave Abrahams Subject: Re: bug#7563: 23.2; `split-string-and-unquote' mis-documented / purpose unclear Date: Sat, 11 Dec 2010 12:57:30 -0500 To: Eli Zaretskii X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 1212-done Cc: "7563-done@debbugs.gnu.org" <7563-done@debbugs.gnu.org>, "1212-done@debbugs.gnu.org" <1212-done@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) On Dec 11, 2010, at 10:52 AM, Eli Zaretskii wrote: >> Date: Sat, 11 Dec 2010 08:43:42 -0500 >> From: Dave Abrahams >> Cc: 7563-done@debbugs.gnu.org, >> 1212-done@debbugs.gnu.org >>=20 >>>> This function performs two types of quoting: enclosing a whole >>>> string in double quotes `"..."', and quoting individual character= s >>>> with a backslash escape `\'. The latter is also used in Lisp >>>> strings, so this function can handle those as well. >>>>=20 >>>>=20 >>>> First problem: the last paragraph above is simply wrong. >>>> split-string-and-unquote doesn't perform any type of quoting; it >>>> un-quotes. >>>=20 >>> I changed "performs" to "supports". Thanks for catching this. >>=20 >> But it's still wrong, I'm afraid. >=20 > It's not "wrong", in the sense that previously the text made it sound > as if split-string-and-unquote could actually _add_ quoting. That is > the only thing I intended to fix there. Sorry, let me precise: your fix is correct inasmuch as it fulfills your inte= ntion, but the text you were working on is still wrong because it says quite= clearly that backslash escaping is supported, but as I have shown, it is no= t.=20 >=20 >> As I mentioned in my original report, >>=20 >> (split-string-and-unquote "foo\\ bar")=20 >>=20 >> yields a list of 2 elements (I wrote it wrong below: you get a >> trailing backslash on "foo\\") >=20 > That's by design; read the discussion I pointed to, where Stefan > explained his rationale. You could agree or disagree with him, but > evidently these functions are useful in a certain class of situations; > see how they are used in a few Lisp packages that come with Emacs. Fine; I'm not arguing with their functionality. I'm arguing that they're mis= -documented.=20 >=20 >> * I spent lots of time trying to suss out what was really going on >> here and writing a clear bug report. I did that in the hopes that >> nobody else would waste time trying to figure this out again, and >> I don't believe that change will prevent it. >=20 > Now that the manual explicitly mentions call-process and > start-process, which are the clients of this function, what else is > missing or unclear? Please be specific. Specifically it specifically states they handle backslashes, and strongly im= plies that they have generally-useful semantics for interacting with arbitra= ry shells, when in fact they are essentially implementation details of call-= /start-process whose semantics are only appropriate to an undocumented set o= f conditions set up in those two functions.=20 >> * The functions' design still has nothing to do with shell quoting; >> they are hard-coded to work with double-quotes and only >> double-quotes, which is not guaranteed to work for an arbitrary >> definition of "shell." >=20 > I believe the manual says precisely that. If the problem is with > mentioning "shell", would removing that solve this difficulty? It would certainly help >> * Having now read the history of this issue, I am strongly convinced >> that the proper thing to do is deprecate these functions. >=20 > They were introduced fairly recently, and I'm sure they were added for > good reasons. I'll let Stefan respond in detail. I'm sure they belong in the codebase, but fairly certain they don't belong i= n the docs until they can be documented accurately.=20 BoostPro Computing * http://boostpro.com [Sent from coveted but awkward mobile device] From unknown Thu Jun 19 14:05:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 09 Jan 2011 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator