From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Hyatt Newsgroups: gmane.emacs.bugs Subject: bug#1795: bug#8027: closed (Re: bug#8027: 23.2; shell problem with $( and !!) Date: Mon, 25 Jan 2016 23:54:56 -0500 Message-ID: References: <87d3mwwwgv.fsf@osage.osagesoftware.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453784183 7667 80.91.229.3 (26 Jan 2016 04:56:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Jan 2016 04:56:23 +0000 (UTC) Cc: 8027@debbugs.gnu.org To: 1795@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 26 05:56:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aNvfm-0003hU-Kd for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jan 2016 05:56:10 +0100 Original-Received: from localhost ([::1]:41928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNvfm-0002co-1S for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jan 2016 23:56:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNvfh-0002cA-H8 for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2016 23:56:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNvfe-0008P3-8c for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2016 23:56:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNvfe-0008Ox-4e for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2016 23:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aNvfd-0001Bq-Vc for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2016 23:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Hyatt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jan 2016 04:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: help-debbugs@gnu.org (GNU bug Tracking System) X-Debbugs-Original-Cc: 1795@debbugs.gnu.org, 8027@debbugs.gnu.org Original-Received: via spool by 1795-submit@debbugs.gnu.org id=B1795.14537841084506 (code B ref 1795); Tue, 26 Jan 2016 04:56:01 +0000 Original-Received: (at 1795) by debbugs.gnu.org; 26 Jan 2016 04:55:08 +0000 Original-Received: from localhost ([127.0.0.1]:36517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aNvem-0001Ac-9z for submit@debbugs.gnu.org; Mon, 25 Jan 2016 23:55:08 -0500 Original-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 Original-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) Original-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) In-Reply-To: (GNU bug Tracking System's message of "Thu, 17 Feb 2011 04:55:02 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111973 Archived-At: 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-lin ux-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)