From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Unknown Newsgroups: gmane.emacs.bugs Subject: bug#8027: 23.2; shell problem with $( and !! Date: Sat, 12 Feb 2011 20:32:16 -0500 Message-ID: <87d3mwwwgv.fsf@osage.osagesoftware.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1297562795 2502 80.91.229.12 (13 Feb 2011 02:06:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Feb 2011 02:06:35 +0000 (UTC) To: 8027@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 13 03:06:30 2011 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.69) (envelope-from ) id 1PoRM5-0001rA-66 for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Feb 2011 03:06:29 +0100 Original-Received: from localhost ([127.0.0.1]:33416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoRM4-0006nr-EA for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Feb 2011 21:06:28 -0500 Original-Received: from [140.186.70.92] (port=37038 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoRLy-0006mw-Vi for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2011 21:06:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoRLx-0004ko-9o for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2011 21:06:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoRLx-0004kh-5C for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2011 21:06:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PoQlq-0002JQ-F0; Sat, 12 Feb 2011 20:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: relson@osage Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Feb 2011 01:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8027 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12975604828716 (code B ref -1); Sun, 13 Feb 2011 01:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Feb 2011 01:28:02 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-Received: by osage (sSMTP sendmail emulation); Sat, 12 Feb 2011 20:32:16 -0500 Original-From: relson@osage 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-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 Resent-Date: Sat, 12 Feb 2011 20:29:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org 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:44088 Archived-At: 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