GNU bug report logs - #1795
shell problem

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: relson@osage; merged with #5007, #8027, #36103; dated Mon, 5 Jan 2009 23:10:05 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 1795 5007 8027 36103. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 1795 <at> debbugs.gnu.org:


Received: (at 1795) by debbugs.gnu.org; 26 Jan 2016 04:55:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 25 23:55:08 2016
Received: from localhost ([127.0.0.1]:36517 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aNvem-0001Ac-9z
	for submit <at> debbugs.gnu.org; Mon, 25 Jan 2016 23:55:08 -0500
Received: from mail-qg0-f51.google.com ([209.85.192.51]:33059)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <ahyatt@HIDDEN>)
 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 <ahyatt@HIDDEN>
To: help-debbugs@HIDDEN (GNU bug Tracking System)
Subject: Re: bug#8027: closed (Re: bug#8027: 23.2;
 shell problem with $( and !!)
References: <nl1v375k1q.fsf@HIDDEN>
 <87d3mwwwgv.fsf@HIDDEN>
 <handler.8027.D8027.129791850130793.notifdone <at> debbugs.gnu.org>
Date: Mon, 25 Jan 2016 23:54:56 -0500
In-Reply-To: <handler.8027.D8027.129791850130793.notifdone <at> debbugs.gnu.org>
 (GNU bug Tracking System's message of "Thu, 17 Feb 2011 04:55:02 +0000")
Message-ID: <m2twm12b4v.fsf@HIDDEN>
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: 1795
Cc: 1795 <at> debbugs.gnu.org, 8027 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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@HIDDEN (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 <at> debbugs.gnu.org.
>
> -- 
> 8027: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8027
> GNU Bug Tracking System
> Contact help-debbugs@HIDDEN with problems
>
> From: Glenn Morris <rgm@HIDDEN>
> Subject: Re: bug#8027: 23.2; shell problem with $( and !!
> To: 8027-done <at> debbugs.gnu.org, 1795 <at> 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@HIDDEN, 1795 <at> 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 "!!<tab>" 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 !!<tab>' 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 !!<tab>' 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:
> <escape> x s h e l l <return> f i n d SPC . SPC - n 
> a m e SPC t e s t <return> l s SPC - l SPC ` ! ! ` 
> <tab> <return> l s SPC - l SPC $ ( SPC f i n d SPC 
> SPC <backspace> . SPC - n a m e SPC t e s t S-SPC ) 
> <return> ! ! <tab> <return> <escape> x r e p o <tab> 
> r <tab> <return>
>
> 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)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#1795; Package emacs. Full text available.

Message received at 1795 <at> debbugs.gnu.org:


Received: (at 1795) by debbugs.gnu.org; 9 Jan 2016 22:26:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 09 17:26:42 2016
Received: from localhost ([127.0.0.1]:44704 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aI1y5-0006pC-F1
	for submit <at> debbugs.gnu.org; Sat, 09 Jan 2016 17:26:41 -0500
Received: from mail-wm0-f41.google.com ([74.125.82.41]:36449)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <athird@HIDDEN>) id 1aI1y2-0006ox-7T
 for 1795 <at> debbugs.gnu.org; Sat, 09 Jan 2016 17:26:39 -0500
Received: by mail-wm0-f41.google.com with SMTP id l65so171890406wmf.1
 for <1795 <at> debbugs.gnu.org>; Sat, 09 Jan 2016 14:26:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20120113;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type;
 bh=zn9fmA66v/R+jBEt+kQQeoRO3Oh0BiU2/GHgk7GSb4w=;
 b=GeUgtHd+kC6SPC/Vf9NEKdUa0ZnH8AhvIj5uZh48h4/OkT6UJhmM3IX/DboPyQdhzI
 QImfrWEA0jyFHyrjf81TkbqwYnB2Cj3E4XJl2Fcr7XIzBIx/Amy02GyNyhJM0QsGXCbY
 bneQT6wVOfEF05uqjcsz8gc2xYa20hKpzea3FYzT5wG+ugxREeaCRBf8h5XiZ6dfx870
 yQMkm1bdA4zasReO45mrTHfZeOnYqZsRu6jqfQVPFXs5i3bkSfSXCZhlbL3ECoch0VEX
 iXWnXncVVejH0Q/xRFu2n65TXEjjghrkoprl3ahuI/Cy0lrKvwlwteo19htfMCEjzszl
 jNgg==
X-Received: by 10.194.236.38 with SMTP id ur6mr126795311wjc.13.1452378392671; 
 Sat, 09 Jan 2016 14:26:32 -0800 (PST)
Received: from galloway.idiocy.org
 (0.7.b.e.8.2.9.3.1.4.b.f.c.3.0.3.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa.
 [2001:8b0:3f8:8129:303c:fb41:3928:eb70])
 by smtp.gmail.com with ESMTPSA id c203sm5628792wmd.5.2016.01.09.14.26.31
 for <1795 <at> debbugs.gnu.org>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 09 Jan 2016 14:26:31 -0800 (PST)
From: Alan J Third <alan@HIDDEN>
To: <1795 <at> debbugs.gnu.org>
Subject: Re: bug#1795: shell regressions
References: <20091112190005.1111da09@HIDDEN>
Date: Sat, 09 Jan 2016 22:26:30 +0000
In-Reply-To: <20091112190005.1111da09@HIDDEN> (David Relson's
 message of "Thu, 12 Nov 2009 19:00:05 -0500")
Message-ID: <m237u68k4p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 1795
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

David Relson <relson@HIDDEN> writes:

> Two problems with the fix:
>
> 1) "!1" (bang, one) -- continues to insert a space between "$" and "("
> 2) "!$" (bang, dollar) -- pulls in the complete previous line, not just
> the line's last token.

It looks to me like 2 is fixed in 25, however 1 is definitely still there.
-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#1795; Package emacs. Full text available.
Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.
bug No longer marked as fixed in versions 24.1. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug unarchived. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug archived. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.
Merged 1795 5007 8027. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 1795 5007. Request was from Glenn Morris <rgm@HIDDEN> to control@HIDDEN. Full text available.
Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control@HIDDEN. Full text available.

Message received at 1795@HIDDEN:


Received: (at 1795) by emacsbugs.donarmstrong.com; 13 Nov 2009 00:00:12 +0000
From relson@HIDDEN Thu Nov 12 16:00:11 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-0.0 required=4.0 tests=SPF_HELO_PASS autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from mail.osagesoftware.com (osagesoftware.com [216.144.204.42])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAD009Sq007288
	for <1795@HIDDEN>; Thu, 12 Nov 2009 16:00:10 -0800
Received: from osage.osagesoftware.com (osage.osagesoftware.com [192.168.1.10])
	by mail.osagesoftware.com (Postfix) with ESMTP id 33B242331
	for <1795@HIDDEN>; Thu, 12 Nov 2009 19:00:05 -0500 (EST)
Date: Thu, 12 Nov 2009 19:00:05 -0500
From: David Relson <relson@HIDDEN>
To: <1795 <at> debbugs.gnu.org>
Subject: shell regressions
Message-ID: <20091112190005.1111da09@HIDDEN>
Organization: Osage Software Systems, Inc.
X-Mailer: Claws Mail 3.7.3 (GTK+ 2.16.6; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Two problems with the fix:

1) "!1" (bang, one) -- continues to insert a space between "$" and "("
2) "!$" (bang, dollar) -- pulls in the complete previous line, not just
the line's last token.



Acknowledgement sent to David Relson <relson@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#1795; Package emacs. Full text available.

Message received at 1795-done@HIDDEN:


Received: (at 1795-done) by emacsbugs.donarmstrong.com; 3 Nov 2009 00:40:16 +0000
From cyd@HIDDEN Mon Nov  2 16:40:16 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-0.3 required=4.0 tests=AWL autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from pantheon-po27.its.yale.edu (pantheon-po27.its.yale.edu [130.132.50.122])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA30eEZl023146
	for <1795-done@HIDDEN>; Mon, 2 Nov 2009 16:40:16 -0800
Received: from furry (adsl-99-69-52-129.dsl.wlfrct.sbcglobal.net [99.69.52.129])
	(authenticated bits=0)
	by pantheon-po27.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nA30e8xv004426
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
	Mon, 2 Nov 2009 19:40:09 -0500
Received: by furry (Postfix, from userid 1000)
	id E913FC070; Mon,  2 Nov 2009 19:40:07 -0500 (EST)
From: Chong Yidong <cyd@HIDDEN>
To: "Relson\, David" <david.relson@HIDDEN>
Cc: 1795-done <at> debbugs.gnu.org
Subject: Re: shell problem
Date: Mon, 02 Nov 2009 19:40:07 -0500
Message-ID: <874opc7860.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed)

> Within an emacs bash shell, using "!!" to re-execute a command with
> "$( ... )" in it results in a space inserted between the dollar sign
> and the left paren.  The inserted space should _not_ be present.

Sorry for the delay; I've just checked a fix into CVS trunk.  Thanks for
the bug report.



Notification sent to relson@osage:
bug acknowledged by developer. Full text available.
Reply sent to Chong Yidong <cyd@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 1795@HIDDEN:


Received: (at 1795) by emacsbugs.donarmstrong.com; 29 Jan 2009 15:41:07 +0000
From david.relson@HIDDEN Thu Jan 29 07:41:07 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from barracuda.orion-sys.com (barracuda.orion-sys.com [192.149.240.6])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0TFf4OI003118
	for <1795@HIDDEN>; Thu, 29 Jan 2009 07:41:06 -0800
X-ASG-Debug-ID: 1233243500-7b2300260000-tiHMB2
X-Barracuda-URL: http://192.149.240.6:8000/cgi-bin/mark.cgi
Received: from mailsvr.orion-sys.com (localhost [127.0.0.1])
	by barracuda.orion-sys.com (Spam Firewall) with ESMTP id 742BA202DFB1
	for <1795@HIDDEN>; Thu, 29 Jan 2009 10:38:43 -0500 (EST)
Received: from mailsvr.orion-sys.com (mailsvr.orion-sys.com [192.149.240.91]) by barracuda.orion-sys.com with ESMTP id kVOHSbDzsAtEAmuP for <1795@HIDDEN>; Thu, 29 Jan 2009 10:38:41 -0500 (EST)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-ASG-Orig-Subj: inserted spaces
Subject: inserted spaces
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Thu, 29 Jan 2009 10:37:52 -0500
Message-ID: <91FA647A1A781F41BBB0359765C90C15C2E3E6@HIDDEN>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: inserted spaces
Thread-Index: AcmCJ4xqehom6RPPSx6NrNNNzIoKDw==
From: "Relson, David" <david.relson@HIDDEN>
To: <1795 <at> debbugs.gnu.org>
X-Barracuda-Connect: mailsvr.orion-sys.com[192.149.240.91]
X-Barracuda-Start-Time: 1233243562
X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at orion-sys.com

Recalling previous commands inserts spaces in other cases besides "$(".
For example,=20

   ">|" becomes "> |"
   "2>&1" becomes "2 > & 1"





Acknowledgement sent to "Relson, David" <david.relson@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#1795; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 5 Jan 2009 23:00:38 +0000
From relson@HIDDEN Mon Jan  5 15:00:38 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: **
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=2.8 required=4.0 tests=FB_WORD1_END_DOLLAR,
	FH_FROMEML_NOTLD,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02
Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n05N0YsW027264
	for <submit@HIDDEN>; Mon, 5 Jan 2009 15:00:35 -0800
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1LJyQz-0001VX-N8
	for bug-gnu-emacs@HIDDEN; Mon, 05 Jan 2009 18:00:33 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1LJyQu-0001U6-8E
	for bug-gnu-emacs@HIDDEN; Mon, 05 Jan 2009 18:00:33 -0500
Received: from [199.232.76.173] (port=60585 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1LJyQt-0001U3-VQ
	for bug-gnu-emacs@HIDDEN; Mon, 05 Jan 2009 18:00:28 -0500
Received: from osagesoftware.com ([216.144.204.42]:53013 helo=mail.osagesoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <relson@HIDDEN>)
	id 1LJyQt-0005bd-BS
	for bug-gnu-emacs@HIDDEN; Mon, 05 Jan 2009 18:00:27 -0500
Received: from osage (osage.osagesoftware.com [192.168.1.10])
	by mail.osagesoftware.com (Postfix) with SMTP id 440AA7BC87
	for <bug-gnu-emacs@HIDDEN>; Mon,  5 Jan 2009 18:00:25 -0500 (EST)
Received: by osage (sSMTP sendmail emulation); Mon,  5 Jan 2009 18:00:25 -0500
From: relson@osage
Date: Mon,  5 Jan 2009 18:00:25 -0500
To: bug-gnu-emacs@HIDDEN
Subject: shell problem
Message-Id: <20090105230025.440AA7BC87@HIDDEN>
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 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 bug-gnu-emacs@HIDDEN mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Within an emacs bash shell, using "!!" to re-execute a command with
"$( ... )" in it results in a space inserted between the dollar sign
and the left paren.  The inserted space should _not_ be present.

###### Here's the dribble file ######

<escape>xshell<return>ls -l $( 0x2000020locate /.emc<backspace>acs | grep emacs$ 0x2000020)<return>!!<tab><return>exit<return> 0x4000020<escape><session.txt<return>

###### Here's the content of the *shell* window ######

relson@osage ~ $ ls -l $( locate /.emacs | grep emacs$ )
-rwxr--r-- 1 relson relson 1506 1999-05-07 07:34 /home/backuppc/maple/d-drive/Backups/viper/c/.emacs
-rwxr--r-- 1 relson relson 1506 1999-05-07 07:34 /home/backuppc/WinNT/d-drive/Backups/viper/c/.emacs
-rwxr--r-- 1 relson relson 7007 2004-04-10 08:46 /home/nic/home/relson/.emacs
-rwxr-xr-x 1 relson relson 8617 2005-06-27 11:27 /home/relson/Orion/cygwin/.emacs
-rw-r--r-- 1 relson relson 2923 2006-11-02 15:54 /home/relson/Orion/emacs.d/.emacs
-rwxr-xr-x 1 relson relson 6788 2004-12-25 18:03 /home/relson/Orion/emacs.d/emacs-20041225/.emacs
-rwxr-xr-x 1 relson relson 6788 2004-12-25 18:03 /home/relson/Orion/emacs.d/emacs-20050607/.emacs
relson@osage ~ $ ls -l $ ( locate /.emacs | grep emacs$ )
bash: syntax error near unexpected token `('
relson@osage ~ $ exit
exit

Process shell exited abnormally with code 2

###### end of *shell* window contents ######

Note: my home directory, i.e. /home/relson, does _not_ have .emacs file

############################################

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
/usr/share/emacs/22.3/etc/DEBUG for instructions.


In GNU Emacs 22.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.11)
 of 2008-12-30 on osage
Windowing system distributor `The X.Org Foundation', version 11.0.10300000
configured using `configure  '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-22' '--infodir=/usr/share/info/emacs-22' '--without-carbon' '--with-sound' '--with-x' '--without-toolkit-scroll-bars' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-xpm' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--libdir=/usr/lib64' '--build=x86_64-pc-linux-gnu' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=athlon64 -O2 -pipe' 'LDFLAGS=-Wl,-O1''

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
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  encoded-kbd-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
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> C-x C-f s e s <tab> 
<return> C-x C-f d r i <tab> <return> <escape> > C-x 
b <return> <help-echo> <help-echo> <escape> x t r u 
<tab> <return> <escape> x r e p o <tab> r <tab> <r
eturn>

Recent messages:
Loading ansi-color...done
Loading encoded-kb...done
Toggling font-lock-mode off; better pass an explicit argument.
For information about GNU Emacs and the GNU system, type <f1> C-a.
Mark set
Making completion list...
Loading help-mode...done
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done





Acknowledgement sent to relson@osage:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#1795; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.