From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 12 20:28:02 2011 Received: (at submit) by debbugs.gnu.org; 13 Feb 2011 01:28:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoQkr-0002GT-Bc for submit@debbugs.gnu.org; Sat, 12 Feb 2011 20:28:01 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoQgV-0002AI-H8 for submit@debbugs.gnu.org; Sat, 12 Feb 2011 20:23:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoQp6-000105-0O for submit@debbugs.gnu.org; Sat, 12 Feb 2011 20:32:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,FH_FROMEML_NOTLD, T_RP_MATCHES_RCVD autolearn=no version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:41255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoQp5-000101-Iz for submit@debbugs.gnu.org; Sat, 12 Feb 2011 20:32:23 -0500 Received: from [140.186.70.92] (port=47001 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoQp4-0007ms-KX for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2011 20:32:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoQp3-0000zn-0E for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2011 20:32:22 -0500 Received: from osagesoftware.com ([216.144.204.42]:33399 helo=mail.osagesoftware.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoQp2-0000zZ-Gd for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2011 20:32:20 -0500 Received: from osage (osage.osagesoftware.com [192.168.1.10]) by mail.osagesoftware.com (Postfix) with SMTP id 7483B7BC8F for ; Sun, 13 Feb 2011 01:32:16 +0000 (UTC) Received: by osage (sSMTP sendmail emulation); Sat, 12 Feb 2011 20:32:16 -0500 From: relson@osage To: bug-gnu-emacs@gnu.org Subject: 23.2; shell problem with $( and !! Date: Sat, 12 Feb 2011 20:32:16 -0500 Message-ID: <87d3mwwwgv.fsf@osage.osagesoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 216.144.204.42 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -3.2 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 12 Feb 2011 20:28:00 -0500 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: -3.2 (---) In a shell window using "!!" when the previous command uses "$( ... )" improperaly adds a space between the "$" and the "(". Starting with a directory containg a file named "test", here's how to demonstrate the problem: 1) In a shell window I can execute "find . -name test" and it'll find the 1 file that's truly in the current directory. 2) I can then execute 'ls -l !!' and the expansion will be "ls -l `find . -name test`" which is correct. 3) I can also execute 'ls -l $( find . -name test)` and the test file will be correctly listed. 4) However, if I then type 'ls -l !!' the "$(" becomes "$ (" (with a space in the middle), and the command fails. In GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2011-01-31 on osage Windowing system distributor `The X.Org Foundation', version 11.0.10902000 configured using `configure '--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib64' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-crt-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64' '--with-gameuser=games' '--with-sound' '--with-x' '--without-gconf' '--without-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--without-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=athlon64 -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: en_US.UTF-8 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: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: x s h e l l f i n d SPC . SPC - n a m e SPC t e s t l s SPC - l SPC ` ! ! ` l s SPC - l SPC $ ( SPC f i n d SPC SPC . SPC - n a m e SPC t e s t S-SPC ) ! ! x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. History item: previous [2 times] Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr message idna sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug help-mode easymenu view ansi-color shell comint ring tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gtk x-toolkit x multi-tty emacs) -- David Relson Osage Software Systems, Inc. relson@osagesoftware.com Ann Arbor, MI 48103 www.osagesoftware.com From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 12 20:31:25 2011 Received: (at control) by debbugs.gnu.org; 13 Feb 2011 01:31:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoQo8-0002Nf-U1 for submit@debbugs.gnu.org; Sat, 12 Feb 2011 20:31:25 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoQo6-0002NS-0V for control@debbugs.gnu.org; Sat, 12 Feb 2011 20:31:22 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1PoQwh-0005ek-H5 for control@debbugs.gnu.org; Sat, 12 Feb 2011 20:40:15 -0500 Date: Sat, 12 Feb 2011 20:40:15 -0500 Message-Id: Subject: control message for bug 8027 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control 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: -6.3 (------) merge 1795 8027 From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 12 21:13:37 2011 Received: (at 8027) by debbugs.gnu.org; 13 Feb 2011 02:13:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoRSz-00043N-6C for submit@debbugs.gnu.org; Sat, 12 Feb 2011 21:13:37 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoRSx-00043B-4k for 8027@debbugs.gnu.org; Sat, 12 Feb 2011 21:13:35 -0500 Received: from localhost ([127.0.0.1]:42754) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoRbY-0007fR-LT; Sat, 12 Feb 2011 21:22:28 -0500 From: Glenn Morris To: relson@osage Subject: Re: bug#8027: 23.2; shell problem with $( and !! References: <87d3mwwwgv.fsf@osage.osagesoftware.com> X-Spook: Medco munitions Delta Force Dick Cheney arrangements 9705 X-Ran: ;"}u]^=@#a?4#?TdyuYm-WU1Us|Kg?P,jEn[`E,mGVjFknhh{wAff8aUhN/&Y8nt.VAPIz X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 12 Feb 2011 21:22:28 -0500 In-Reply-To: <87d3mwwwgv.fsf@osage.osagesoftware.com> (relson@osage's message of "Sat, 12 Feb 2011 20:32:16 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 8027 Cc: 8027@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: -5.7 (-----) Dupe of 1795 and 5007. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 12 21:15:29 2011 Received: (at 8027) by debbugs.gnu.org; 13 Feb 2011 02:15:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoRUn-00046I-Lq for submit@debbugs.gnu.org; Sat, 12 Feb 2011 21:15:29 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoRUm-000467-0P for 8027@debbugs.gnu.org; Sat, 12 Feb 2011 21:15:28 -0500 Received: from localhost ([127.0.0.1]:42779) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoRdM-0007rg-Ad; Sat, 12 Feb 2011 21:24:20 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19799.16596.52772.842737@fencepost.gnu.org> Date: Sat, 12 Feb 2011 21:24:20 -0500 From: Glenn Morris To: relson@osagesoftware.com Subject: Re: bug#8027: 23.2; shell problem with $( and !! In-Reply-To: References: <87d3mwwwgv.fsf@osage.osagesoftware.com> X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: yellow X-Ran: WF%jN.4:'`a"PUQAFp$o},qd"2205\;*Y X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 8027 Cc: 8027@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: -6.3 (------) Please use a valid email address when reporting bugs. Glenn Morris wrote (on Sat, 12 Feb 2011 at 21:22 -0500): > Dupe of 1795 and 5007. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 13 03:33:21 2011 Received: (at 8027) by debbugs.gnu.org; 13 Feb 2011 08:33:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoXOS-0003oC-Mc for submit@debbugs.gnu.org; Sun, 13 Feb 2011 03:33:21 -0500 Received: from osagesoftware.com ([216.144.204.42] helo=mail.osagesoftware.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoTKN-0006cO-52 for 8027@debbugs.gnu.org; Sat, 12 Feb 2011 23:12:51 -0500 Received: from osage.osagesoftware.com (osage.osagesoftware.com [192.168.1.10]) by mail.osagesoftware.com (Postfix) with ESMTP id 5E3507BC9A; Sun, 13 Feb 2011 04:21:44 +0000 (UTC) Date: Sat, 12 Feb 2011 23:21:44 -0500 From: David Relson To: Glenn Morris Subject: Re: bug#8027: 23.2; shell problem with $( and !! Message-ID: <20110212232144.26c073ed@osage.osagesoftware.com> In-Reply-To: <19799.16596.52772.842737@fencepost.gnu.org> References: <87d3mwwwgv.fsf@osage.osagesoftware.com> <19799.16596.52772.842737@fencepost.gnu.org> Organization: Osage Software Systems, Inc. X-Mailer: Claws Mail 3.7.8 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8027 X-Mailman-Approved-At: Sun, 13 Feb 2011 03:33:19 -0500 Cc: 8027@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.6 (--) On Sat, 12 Feb 2011 21:24:20 -0500 Glenn Morris wrote: > > Please use a valid email address when reporting bugs. > > Glenn Morris wrote (on Sat, 12 Feb 2011 at 21:22 -0500): > > > Dupe of 1795 and 5007. Hi Glen, Sorry about that, and I thank you for writing. I had wondered why there wasn't an autoresponse to the bug report. Evidently emacs' bug reporting system picked up my machine name from /etc/hosts, which I didn't realize, rather than my email address. How do I tell emacs my email address so that bug reports will be correct (without needing manual fixing)? FWIW, the fix for 1795 is defective. It fixes the changing of "$(" to "$ (" when "!!" is used. However, when "!$" is used to get the last argument, the 1795 fix duplicates the whole previous line. It's my belief that "!$" and "!$" should behave the same, but they don't and it's frustrating. David From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 13 14:49:43 2011 Received: (at 8027) by debbugs.gnu.org; 13 Feb 2011 19:49:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pohx1-0003x3-Lv for submit@debbugs.gnu.org; Sun, 13 Feb 2011 14:49:43 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pohwz-0003wr-Jl for 8027@debbugs.gnu.org; Sun, 13 Feb 2011 14:49:42 -0500 Received: from localhost ([127.0.0.1]:58320) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Poi5b-0007MD-RH; Sun, 13 Feb 2011 14:58:35 -0500 From: Glenn Morris To: David Relson Subject: Re: bug#8027: 23.2; shell problem with $( and !! References: <87d3mwwwgv.fsf@osage.osagesoftware.com> <19799.16596.52772.842737@fencepost.gnu.org> <20110212232144.26c073ed@osage.osagesoftware.com> X-Spook: AGT. AMME event security 64 Vauxhall Cross Lon Horiuchi X-Ran: LN8)D}W{q59mfNA}PKb1_`I (David Relson's message of "Sat, 12 Feb 2011 23:21:44 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 8027 Cc: 8027@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: -6.3 (------) David Relson wrote: > Evidently emacs' bug reporting system picked up my machine name > from /etc/hosts, which I didn't realize, rather than my email address. > How do I tell emacs my email address so that bug reports will be > correct (without needing manual fixing)? I think you can set user-mail-address. Perhaps report-emacs-bug should be improved in this regard. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 14 20:33:42 2011 Received: (at 8027) by debbugs.gnu.org; 15 Feb 2011 01:33:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pp9nS-0001OT-LK for submit@debbugs.gnu.org; Mon, 14 Feb 2011 20:33:42 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pp9nQ-0001OC-5G for 8027@debbugs.gnu.org; Mon, 14 Feb 2011 20:33:40 -0500 Received: from localhost ([127.0.0.1]:36775) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pp9w6-0007oK-LE; Mon, 14 Feb 2011 20:42:38 -0500 From: Glenn Morris To: David Relson Subject: Re: bug#8027: 23.2; shell problem with $( and !! References: <87d3mwwwgv.fsf@osage.osagesoftware.com> <19799.16596.52772.842737@fencepost.gnu.org> <20110212232144.26c073ed@osage.osagesoftware.com> X-Spook: PLO embassy Craig Livingstone Fortezza Montenegro X-Ran: 1p(?UbZ6^zSUE'M4zk7auyU%0/n5W$Aa=@YBF!M0%?#)n^DMo6nws1||^up<,p<1,T|0F3 X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 14 Feb 2011 20:42:38 -0500 In-Reply-To: (Glenn Morris's message of "Sun, 13 Feb 2011 14:58:35 -0500") Message-ID: <17hd2dqep.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 8027 Cc: 8027@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: -6.3 (------) Try setting shell-delimiter-argument-list to nil. (Though I don't know if this will have any other adverse affects.) From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 15 13:37:31 2011 Received: (at 8027) by debbugs.gnu.org; 15 Feb 2011 18:37:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PpPmF-0001tI-3K for submit@debbugs.gnu.org; Tue, 15 Feb 2011 13:37:31 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PpPmC-0001t4-Nx for 8027@debbugs.gnu.org; Tue, 15 Feb 2011 13:37:29 -0500 Received: from localhost ([127.0.0.1]:56937) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpPuv-00079w-5h; Tue, 15 Feb 2011 13:46:29 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19802.51716.698530.539068@fencepost.gnu.org> Date: Tue, 15 Feb 2011 13:46:28 -0500 From: Glenn Morris To: David Relson Subject: Re: bug#8027: 23.2; shell problem with $( and !! In-Reply-To: <20110215073140.2b4f075c@osage.osagesoftware.com> References: <20110214231338.7a1a771c@osage.osagesoftware.com> <20110215073140.2b4f075c@osage.osagesoftware.com> X-Attribution: GM X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 8027 Cc: 8027@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: -6.3 (------) Please keep the debbugs.gnu.org address cc'd on replies. David Relson wrote (on Tue, 15 Feb 2011 at 07:31 -0500): > Adding the following lines to .emacs is working well (with no adverse > effects noticed yet) > > (defvar shell-delimiter-argument-list) > (setq shell-delimiter-argument-list nil) > > I'll propagate the addition to my various platforms (gentoo, centos, > ubuntu, solaris, and cygwin) and see what happens :-> > > Thanks! > > David From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 16 23:55:00 2011 Received: (at 8027-done) by debbugs.gnu.org; 17 Feb 2011 04:55:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PpvtM-00080c-6o for submit@debbugs.gnu.org; Wed, 16 Feb 2011 23:55:00 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PpvtK-00080Q-Dd for 8027-done@debbugs.gnu.org; Wed, 16 Feb 2011 23:54:59 -0500 Received: from localhost ([127.0.0.1]:41069) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ppw25-0002SM-J8; Thu, 17 Feb 2011 00:04:01 -0500 From: Glenn Morris To: 8027-done@debbugs.gnu.org Subject: Re: bug#8027: 23.2; shell problem with $( and !! References: <20110214231338.7a1a771c@osage.osagesoftware.com> <20110215073140.2b4f075c@osage.osagesoftware.com> <19802.51716.698530.539068@fencepost.gnu.org> X-Spook: Dateline Saudi Arabia Lon Horiuchi LLNL chameleon man CDC X-Ran: WPjiED0_W}.=] (Glenn Morris's message of "Tue, 15 Feb 2011 13:46:28 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.7 (----) X-Debbugs-Envelope-To: 8027-done 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.7 (----) Version: 24.1 As a test, I have set shell-delimiter-argument-list to nil in the Emacs trunk. It fixes this issue, but may cause other issues. If it does, maybe add something like shell-delimiter-no-break-re (cf f90.el) that specifies a list of tokens containing delimiter characters that are NOT to be broken. From unknown Fri Aug 15 15:37:31 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 17 Mar 2011 11:24:05 +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 From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 09 15:12:39 2011 Received: (at control) by debbugs.gnu.org; 9 Sep 2011 19:12:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R26VC-0005Yh-L7 for submit@debbugs.gnu.org; Fri, 09 Sep 2011 15:12:39 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R26VB-0005Yb-0G for control@debbugs.gnu.org; Fri, 09 Sep 2011 15:12:37 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R26RD-0005iS-37 for control@debbugs.gnu.org; Fri, 09 Sep 2011 15:08:31 -0400 Date: Fri, 09 Sep 2011 15:08:31 -0400 Message-Id: Subject: control message for bug 8027 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control 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: -6.4 (------) unarchive 8027 notfixed 8027 24.1 reopen 8027 From unknown Fri Aug 15 15:37:31 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Fri, 09 Sep 2011 19:13:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 09 15:15:18 2011 Received: (at 8027) by debbugs.gnu.org; 9 Sep 2011 19:15:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R26Xl-00063A-Kj for submit@debbugs.gnu.org; Fri, 09 Sep 2011 15:15:17 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R26Xj-00060Q-BP for 8027@debbugs.gnu.org; Fri, 09 Sep 2011 15:15:16 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R26Tl-0006A3-0Q for 8027@debbugs.gnu.org; Fri, 09 Sep 2011 15:11:09 -0400 From: jemarch@gnu.org (Jose E. Marchesi) To: 8027@debbugs.gnu.org Subject: Default value for shell-delimiter-argument-list Date: Mon, 13 Jun 2011 03:34:43 +0200 Lines: 26 X-Face: &.8`471"Bqook@QSz?twj+X, HN7JU%.xw8{mf=i3iGiUu`XvwAX%}*qo[_B$<{lW5qWehjq \ESjspv]gCax}/kkJV.@kR])`dPg{i_B\vWC' X-From-Line: emacs-devel-bounces+rgm=gnu.org@gnu.org Sun Jun 12 21:43:14 2011 Received: from eggs.gnu.org ([140.186.70.92]:42354) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QVwBO-0001x4-Kg for rgm@gnu.org; Sun, 12 Jun 2011 21:43:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVwBN-00066M-3J for rgm@gnu.org; Sun, 12 Jun 2011 21:43:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:34198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVwBM-00066I-Nq for rgm@gnu.org; Sun, 12 Jun 2011 21:43:12 -0400 Received: from localhost ([::1]:50412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVwBM-00042n-1N for rgm@gnu.org; Sun, 12 Jun 2011 21:43:12 -0400 Received: from eggs.gnu.org ([140.186.70.92]:58707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVw8j-00042I-B4 for emacs-devel@gnu.org; Sun, 12 Jun 2011 21:40:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVw8h-0005iZ-J7 for emacs-devel@gnu.org; Sun, 12 Jun 2011 21:40:29 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:36170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVw8h-0005iV-9V for emacs-devel@gnu.org; Sun, 12 Jun 2011 21:40:27 -0400 Received: from f051225124.adsl.alicedsl.de ([78.51.225.124]:36265 helo=termi.gnu.org) by fencepost.gnu.org with esmtpa (Exim 4.71) (envelope-from ) id 1QVw8g-0001mN-Sk for emacs-devel@gnu.org; Sun, 12 Jun 2011 21:40:27 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Debbugs-No-Ack: yes Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 8027 X-BeenThere: debbugs-submit@debbugs.gnu.org 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: -6.6 (------) [ resent from http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00392.html ] Hi. Today I tried to cd into a directory named "Introduction & motivation/" while in shell-mode, by typing I and then TAB. To my surprise the resulting expanded and quoted name was "Introduction\\ &\\ motivation" instead of "Inroduction\\ \\&\\ motivation". Unfortunately I only realized what was going on after hitting RET and having bash trying to execute the command "motivation". Seems that the default value of shell-delimiter-argument-list was changed to nil as a way to fix bug #8027 [1]. As a consequence the expanded filenames in shell-mode are not safe to be included in a command line. Is that a definitive fix or just a workaround until a better solution is found for the problem with the !! completion? [1] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8027 -- Jose E. Marchesi jemarch@gnu.org GNU Project http://www.gnu.org From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 09 15:17:21 2011 Received: (at 8027) by debbugs.gnu.org; 9 Sep 2011 19:17:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R26Zl-0006N7-59 for submit@debbugs.gnu.org; Fri, 09 Sep 2011 15:17:21 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R26Zj-0006N0-9C for 8027@debbugs.gnu.org; Fri, 09 Sep 2011 15:17:19 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R26Vl-0006jX-A6; Fri, 09 Sep 2011 15:13:13 -0400 From: Glenn Morris To: 8027@debbugs.gnu.org Subject: Re: bug#8027: Default value for shell-delimiter-argument-list References: <87d3mwwwgv.fsf@osage.osagesoftware.com> X-Spook: Ermes assassination Al-Qaeda SAFE Steve Case dictionary X-Ran: Vqk_hVbM}ml/<*m]iG~yk.%Y@'B>Q([c6z3}HMgOO5kPy]={Lhn]sc3cjTLt]|sNq!~wiO X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 09 Sep 2011 15:13:13 -0400 In-Reply-To: (Jose E. Marchesi's message of "Mon, 13 Jun 2011 03:34:43 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 8027 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: -6.4 (------) I have reopened this in light of the message I forwarded from emacs-devel. Probably this change should be reverted and re-done another way. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 15 03:03:03 2012 Received: (at 8027) by debbugs.gnu.org; 15 Feb 2012 08:03:03 +0000 Received: from localhost ([127.0.0.1]:40955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxZpO-0005IP-N5 for submit@debbugs.gnu.org; Wed, 15 Feb 2012 03:03:03 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:44332 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxZpL-0005I0-7A for 8027@debbugs.gnu.org; Wed, 15 Feb 2012 03:03:00 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RxZnh-0001lF-NP; Wed, 15 Feb 2012 03:01:17 -0500 From: Glenn Morris To: 8027@debbugs.gnu.org Subject: Re: bug#8027: Default value for shell-delimiter-argument-list References: <87d3mwwwgv.fsf@osage.osagesoftware.com> X-Spook: Project Monarch Islam Abduganievich Karimov White House X-Ran: GVPAx!K57(xNeR$bF8zG^e'AV]CiQf:!cWqSEZ5hE (Glenn Morris's message of "Fri, 09 Sep 2011 15:13:13 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 8027 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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.2 (----) Glenn Morris wrote: > I have reopened this in light of the message I forwarded from > emacs-devel. Probably this change should be reverted and re-done another > way. I reverted it. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 25 23:55:06 2016 Received: (at 8027) by debbugs.gnu.org; 26 Jan 2016 04:55:06 +0000 Received: from localhost ([127.0.0.1]:36515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aNvej-0001AQ-TK for submit@debbugs.gnu.org; Mon, 25 Jan 2016 23:55:06 -0500 Received: from mail-qg0-f51.google.com ([209.85.192.51]:33059) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aNvei-00019s-Iw; Mon, 25 Jan 2016 23:55:04 -0500 Received: by mail-qg0-f51.google.com with SMTP id b35so126769181qge.0; Mon, 25 Jan 2016 20:55:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=nKEvDqeXwXKND/+020aRGzM6osMC5gaflQlM/loSI2U=; b=Lo1KRewxu+PlBGiXgfGt9WCcUEhCnzDH5ADuwuTuNFASUz6uxc//pM9pfxQiMnJklx rXEeeKrwvuV4Hbck2hKhDV7mvudnccUFAvaitXJISbJsYN41W4K1sJopiyrvfSRT/HYA Gkwv998XPpUWp9Q09/a/Ji/VLVMVyBzxLS58to5zh+vphU24NhrmwClhRz2uWPy1Wq25 hEW6Fz9LyD0L8vmEIQjPnJREng5tipQ2Yt0cUJdG7t6TVUJ6o9ECcWUUsUuIX8ACnQAq dAVtvKWN5C+2rci5ZuJMbW+KWrQIWOI1SWU8jC20u7LVJe0HowhDSaCfkIG70HSDxjxy +2qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=nKEvDqeXwXKND/+020aRGzM6osMC5gaflQlM/loSI2U=; b=QIWuOR2Nvqp5XVHzAUr8B+5+1RsQLb1kwRu/m5YoUXz8ehS+z0PGZngBD/udRUJtSt 1qvCCgOKYGs70YHFvWhZU8sFbPZaS6WQNO/1VKSaoQ8wRmImzp3D3JtUBBLs6A9xMVNr BmUBV/yZ8ClJOHM/v+P7lzJ7rpoA5EP/T6iRjMbPi8skhKu+rGnfAcjek3QFxmjkY/SM tTsm4vlVEYef7TlDnQ4857dKu620aaqhebu/+eBn2kfEKkjKMPIoLWlmn60h/wDyQAQ0 fPRnLbojzV4j4pDADH0PqVPbTn5knC5S3nDvmOkmjSLyoYF7MaDWsSA5vzRY4qmrNql4 UDIw== X-Gm-Message-State: AG10YOQ8xCsQhQgNk9THy/JDwzM1R/MlOiHZvxReNMukoLGwWhuMiu/6lF70IWEAoj6tCg== X-Received: by 10.140.253.3 with SMTP id y3mr27358835qhc.39.1453784099014; Mon, 25 Jan 2016 20:54:59 -0800 (PST) Received: from Andrews-MacBook-Pro.local.ahyatt-laptop (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199]) by smtp.gmail.com with ESMTPSA id u78sm10150349qge.27.2016.01.25.20.54.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jan 2016 20:54:58 -0800 (PST) From: Andrew Hyatt To: help-debbugs@gnu.org (GNU bug Tracking System) Subject: Re: bug#8027: closed (Re: bug#8027: 23.2; shell problem with $( and !!) References: <87d3mwwwgv.fsf@osage.osagesoftware.com> Date: Mon, 25 Jan 2016 23:54:56 -0500 In-Reply-To: (GNU bug Tracking System's message of "Thu, 17 Feb 2011 04:55:02 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 8027 Cc: 1795@debbugs.gnu.org, 8027@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) This bug has been re-opened due to duplicates, but I'd just like to also point out that I just tried this Emacs 25, and can reproduce the original problem. help-debbugs@gnu.org (GNU bug Tracking System) writes: > Your bug report > > #8027: 23.2; shell problem with $( and !! > > which was filed against the emacs package, has been closed. > > The explanation is attached below, along with your original report. > If you require more details, please reply to 8027@debbugs.gnu.org. > > -- > 8027: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8027 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems > > From: Glenn Morris > Subject: Re: bug#8027: 23.2; shell problem with $( and !! > To: 8027-done@debbugs.gnu.org, 1795@debbugs.gnu.org > Date: Thu, 17 Feb 2011 00:04:01 -0500 (4 years, 48 weeks, 6 days ago) > > Version: 24.1 > > As a test, I have set shell-delimiter-argument-list to nil in the Emacs > trunk. It fixes this issue, but may cause other issues. > > If it does, maybe add something like shell-delimiter-no-break-re (cf > f90.el) that specifies a list of tokens containing delimiter characters > that are NOT to be broken. > > ---------- > > From: relson@osage > Subject: 23.2; shell problem with $( and !! > To: bug-gnu-emacs@gnu.org, 1795@debbugs.gnu.org > Date: Sat, 12 Feb 2011 20:32:16 -0500 > Date: Sat, 12 Feb 2011 20:32:16 -0500 (4 years, 49 weeks, 4 days ago) > > In a shell window using "!!" when the previous command uses "$( > ... )" improperaly adds a space between the "$" and the "(". > > Starting with a directory containg a file named "test", here's how to demonstrate the problem: > > 1) In a shell window I can execute "find . -name test" and it'll find the 1 > file that's truly in the current directory. > > 2) I can then execute 'ls -l !!' and the expansion will be "ls -l > `find . -name test`" which is correct. > > 3) I can also execute 'ls -l $( find . -name test)` and the test file will > be correctly listed. > > 4) However, if I then type 'ls -l !!' the "$(" becomes "$ (" (with > a space in the middle), and the command fails. > > > In GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) > of 2011-01-31 on osage > Windowing system distributor `The X.Org Foundation', version 11.0.10902000 > configured using `configure '--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib64' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-crt-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64' '--with-gameuser=games' '--with-sound' '--with-x' '--without-gconf' '--without-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--without-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=athlon64 -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'CPPFLAGS='' > > Important settings: > value of $LC_ALL: en_US.UTF-8 > 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: en_US.UTF-8 > value of $XMODIFIERS: nil > locale-coding-system: utf-8-unix > default enable-multibyte-characters: t > > Major mode: Shell > > Minor modes in effect: > shell-dirtrack-mode: t > tooltip-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > x s h e l l f i n d SPC . SPC - n > a m e SPC t e s t l s SPC - l SPC ` ! ! ` > l s SPC - l SPC $ ( SPC f i n d SPC > SPC . SPC - n a m e SPC t e s t S-SPC ) > ! ! x r e p o > r > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > History item: previous [2 times] > Making completion list... > > Load-path shadows: > None found. > > Features: > (shadow sort mail-extr message idna sendmail regexp-opt ecomplete rfc822 > mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap > mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader > gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit > mailheader canlock sha1 hex-util hashcash mail-utils emacsbug help-mode > easymenu view ansi-color shell comint ring tooltip ediff-hook vc-hooks > lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe > lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar > mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham > georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao > korean japanese hebrew greek romanian slovak czech european ethiopic > indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple > abbrev loaddefs button minibuffer faces cus-face files text-properties > overlay md5 base64 format env code-pages mule custom widget > hashtable-print-readable backquote make-network-process dbusbind gtk > x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 05 21:02:41 2019 Received: (at control) by debbugs.gnu.org; 6 Jun 2019 01:02:41 +0000 Received: from localhost ([127.0.0.1]:48546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYgnh-0003MQ-8a for submit@debbugs.gnu.org; Wed, 05 Jun 2019 21:02:41 -0400 Received: from mail-it1-f177.google.com ([209.85.166.177]:39723) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYgng-0003MC-Bn; Wed, 05 Jun 2019 21:02:40 -0400 Received: by mail-it1-f177.google.com with SMTP id j204so543681ite.4; Wed, 05 Jun 2019 18:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=hFdGH19eIudgryTri2JuSQlCV0p8gtqht+dfABvLQEo=; b=PDlY28UWCQPRjjBdlvqBScPpmi5Zni1C9WEEJKcqn9OnwmKlnf6RPxlxI+XRNVYOWX X5kWX+WgojC1zyx6sGZpsj50TGxgLy265V0e90RiUlsRv9/zsXW4SeubtS42kRocepQ1 yvdiUICgKoLLtMdbuEEdztHRi/RR9ceQ5Zrf9SvQSDyvYtgXAH3G+VNOoeK1Hxn8Ybrp WGdp39MnAqYw5xtqD4DcqEXzhqjlYZjknmdG7yIDnaYgDI6xVsXVXwc76li2QaFS26TC ael5GIK7/xMktZ5Q5Fp8Kbj4ZuyGSYd3qiJ7ezuQINnEKMhdUKZJYw4NaSvrvmlI5cBV jiSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=hFdGH19eIudgryTri2JuSQlCV0p8gtqht+dfABvLQEo=; b=qvtJ3UzX5fCYPfCnxFA174U5/3L7i+qVF5ulZiW8HvopdWUWNfIHSvzM2PpnjFfrLn pAxjt2VZuKBdNJFbyhYWXNz2LeK8VJ5g1u4i491Jv5bGKaNssVeJcUk6Jl7BcJbkoPS1 XrmMM7eoQIuR2agp44Uf4UMApI8gmUUmEQ29tMssw6vdL8xK33qHZ2AXO6YatMJsS+qW J2z2MOwcpVA7vomyXWxQTXxM9GMkydws48qYgtgIEOYh6/Kh9ByY2TelQh+g3nRcVjs3 Ew7L9NB7ex9va42Nq2S6LKvgCnIqrWZ2T1ldPWsrYP/nu30KnJmmbx/krZt2ao6lpub8 sjzQ== X-Gm-Message-State: APjAAAWSCXXGSw8e94DoQvtY8snLXXsigJ4OiaVWO9vFWDJJbOIy1d4a 2M0TmgckZ2/wSp+eJl6mXlYKttn/ X-Google-Smtp-Source: APXvYqw3CCrg5DzWLOTfpZT2/yPIgVifqQNpzvGSWKhuorlEjala3huHRMDny+Wt7t0Z24JOd1+Wtg== X-Received: by 2002:a05:6638:149:: with SMTP id y9mr3923350jao.76.1559782954414; Wed, 05 Jun 2019 18:02:34 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id a198sm271984ita.2.2019.06.05.18.02.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jun 2019 18:02:33 -0700 (PDT) From: Noam Postavsky To: Enric =?utf-8?Q?Rodr=C3=ADguez?= Carbonell Subject: Re: bug#36103: 24.5; Blank spaces around parentheses in history expansion in shell mode References: <5fb3dec3-3c48-9a49-cc50-8f68981978af@cs.upc.edu> Date: Wed, 05 Jun 2019 21:02:33 -0400 In-Reply-To: <5fb3dec3-3c48-9a49-cc50-8f68981978af@cs.upc.edu> ("Enric =?utf-8?Q?Rodr=C3=ADguez?= Carbonell"'s message of "Wed, 5 Jun 2019 13:03:49 +0200") Message-ID: <87lfyf34ra.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: control Cc: 36103@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-) merge 36103 8027 quit Enric Rodr=C3=ADguez Carbonell writes: > $ for file in $(ls); do echo $file; done > $ !for > M-x comint-replace-by-expanded-history > $ for file in $ ( ls ) ; do echo $file ; done > > The blank spaces around the parentheses should not be there. > Because of these blank spaces, this command cannot be executed, > as "$ (" should be "$(". Yes, the problem is in comint-arguments which attempts to parse a shell line into separate arguments, using just a bunch of regexps. This is doomed to failure I think. But the alternative would be a full blown shell parser, so I don't know how feasible it will be to fix this bug. It's been with us a long time.