From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Enric =?UTF-8?Q?Rodr=C3=ADguez?= Carbonell Newsgroups: gmane.emacs.bugs Subject: bug#36103: 24.5; Blank spaces around parentheses in history expansion in shell mode Date: Wed, 5 Jun 2019 13:03:49 +0200 Message-ID: <5fb3dec3-3c48-9a49-cc50-8f68981978af@cs.upc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="37513"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: 36103@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 05 16:48:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYXCz-0009bY-LM for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jun 2019 16:48:09 +0200 Original-Received: from localhost ([127.0.0.1]:43862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYXCy-0000ds-E3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jun 2019 10:48:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYX76-0003uz-MN for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 10:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYX75-0007u9-4y for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 10:42:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34271) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hYX74-0007pm-1O for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 10:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hYX73-0000OH-Qp for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 10:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Enric =?UTF-8?Q?Rodr=C3=ADguez?= Carbonell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Jun 2019 14:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36103 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15597456701426 (code B ref -1); Wed, 05 Jun 2019 14:42:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Jun 2019 14:41:10 +0000 Original-Received: from localhost ([127.0.0.1]:47815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYX6C-0000Mv-ND for submit@debbugs.gnu.org; Wed, 05 Jun 2019 10:41:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39875) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYTi7-00034p-97 for submit@debbugs.gnu.org; Wed, 05 Jun 2019 07:04:04 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55156) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYTi2-0002ej-5y for submit@debbugs.gnu.org; Wed, 05 Jun 2019 07:03:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYTi0-0004LY-Ry for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 07:03:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYThz-0002Vv-Hg for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 07:03:56 -0400 Original-Received: from mccarthy.ugdsi.upc.edu ([147.83.20.25]:36088) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYThz-0002MS-6w for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 07:03:55 -0400 Original-Received: from leon.ugdsi.upc.edu (leon.lsi.upc.edu [147.83.20.67]) by mccarthy.ugdsi.upc.edu (8.15.1+Sun/8.15.1) with ESMTP id x55B3ntA022355 for ; Wed, 5 Jun 2019 13:03:49 +0200 (CEST) Original-Received: from [10.192.137.157] (localhost [127.0.0.1]) (authenticated bits=0) by leon.ugdsi.upc.edu (8.13.6/8.13.6/MSA-SMTP-AUTH) with ESMTP id x55B3nYh020632 for ; Wed, 5 Jun 2019 13:03:49 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 05 Jun 2019 10:41:07 -0400 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: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:160157 Archived-At: Hi, I would like to report what I think is a bug in the history expansion in shell mode. This is the sequence of steps: $ emacs -Q Once in emacs: M-x shell Then I type in the command line of the shell window: $ for file in $(ls); do echo $file; done Then I type at the prompt: $ !for and then run command: M-x comint-replace-by-expanded-history which replaces the $ !for by $ 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 "$(". Best regards, Enric **************************************************************** In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-09-20 on lcy01-07, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.6 LTS Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Important settings: value of $LC_MONETARY: es_ES.UTF-8 value of $LC_NUMERIC: es_ES.UTF-8 value of $LC_TIME: es_ES.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t electric-indent-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-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. History item: 1 Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils shell pcomplete comint ansi-color ring time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar 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 minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 75917 7030) (symbols 48 18019 0) (miscs 40 45 149) (strings 32 11232 4144) (string-bytes 1 311767) (vectors 16 9670) (vector-slots 8 389946 11489) (floats 8 63 219) (intervals 56 308 19) (buffers 960 12) (heap 1024 16912 853)) -- _______________________________________ Enric Rodriguez Carbonell Technical University of Catalonia (UPC) www.cs.upc.edu/~erodri +34-93-4137815 Office 113 - Omega Building Department of Computer Science (CS) Jordi Girona 1, 08034 Barcelona, Spain _______________________________________