From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1212: 23.0.60; split-string-and-unquote problems Date: Mon, 20 Oct 2008 18:04:41 +0200 Message-ID: Reply-To: Eli Zaretskii , 1212@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1224541425 5927 80.91.229.12 (20 Oct 2008 22:23:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2008 22:23:45 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 21 00:24:45 2008 connect(): Connection refused 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 1KrxfJ-0005Wg-5Y for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Oct 2008 18:31:34 +0200 Original-Received: from localhost ([127.0.0.1]:42531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrxeB-0002y7-Lt for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Oct 2008 12:30:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Krxe6-0002xV-73 for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2008 12:30:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Krxe2-0002wx-Tq for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2008 12:30:17 -0400 Original-Received: from [199.232.76.173] (port=56487 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Krxe2-0002wt-Nx for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2008 12:30:14 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56456) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Krxe2-0006YO-0K for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2008 12:30:15 -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 m9KGU0vR030024; Mon, 20 Oct 2008 09:30:01 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9KGA4GC025308; Mon, 20 Oct 2008 09:10:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 20 Oct 2008 16:10:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1212 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122451868823254 (code B ref -1); Mon, 20 Oct 2008 16:10:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 20 Oct 2008 16:04:48 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 20 Oct 2008 12:30:17 -0400 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:21709 gmane.emacs.pretest.bugs:23264 Archived-At: 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%