From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Milan Zimmermann Newsgroups: gmane.emacs.bugs Subject: bug#59752: 29.0.60; Eshell: Brace inside comment in {..} confuses Eshell parser Date: Thu, 1 Dec 2022 20:34:02 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004735e605eece575f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25540"; mail-complaints-to="usenet@ciao.gmane.io" To: 59752@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 02 02:35:19 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0uxS-0006RC-GS for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Dec 2022 02:35:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0uxE-00077a-QT; Thu, 01 Dec 2022 20:35:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0uxC-00077O-RK for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 20:35:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0uxC-00016K-IG for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 20:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0uxC-0004Lj-Al for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 20:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Milan Zimmermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2022 01:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59752 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.166994488816705 (code B ref -1); Fri, 02 Dec 2022 01:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Dec 2022 01:34:48 +0000 Original-Received: from localhost ([127.0.0.1]:43125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0uwx-0004LN-JZ for submit@debbugs.gnu.org; Thu, 01 Dec 2022 20:34:48 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:55350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0uws-0004LH-EX for submit@debbugs.gnu.org; Thu, 01 Dec 2022 20:34:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0uws-00076F-7k for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 20:34:42 -0500 Original-Received: from mail-vs1-xe2d.google.com ([2607:f8b0:4864:20::e2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0uwq-00012z-1u for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 20:34:41 -0500 Original-Received: by mail-vs1-xe2d.google.com with SMTP id d185so3410601vsd.0 for ; Thu, 01 Dec 2022 17:34:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=VU+JH3XjLIJduLz83ozxenE1v1axBs8BQJ9B5sK05IQ=; b=OEL4mhggBvmHxRbf6A1pdesXbPNPRIcSHtHEfbkmrmb2DvDksqelyAKm1MAbdOu1lB /WQhZ6hBTlhd1WaSXQ4EUYwl6fo9KuwSY5EnjYrKIsibx493rtwtemccp5iu729gQ6wz cj42wbABZ1TG67dI4infRbA38O50VBOyAKpHkDHHzff6Tlzw+JNo2UvgsnQvXxNTZzBl 2ceIG17I+JgIU0ZapdLlHCHIL0I/GDNGtohjy3ffDp6Pl6DPae/FiTYqPzUPQMpMeR9m I7ji/+2Fkifu37SQJ0DoZoq8BkqTsq21YzP9+hhp9hWefGV2U2HRyM38JFIanfBnwJV3 r/Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VU+JH3XjLIJduLz83ozxenE1v1axBs8BQJ9B5sK05IQ=; b=hdURstx+Yfz491pJikWNrJZZ89vNrb1O9yKqC18J7xP/YJWKSis32xN4nK89XwoTlE n+JrLERHoJQM22AFQJOUdPJcnVYnHCpT3pv2xExvPPoWOWTBGjFS0SWAM0owJoNUz4Dl MLO9lyMpZbRzRL3kiY9WOB3iTHjUeUAHzbb5QhNzKVzvAnD36SJ+5hmi/NRHAm8s0Ca2 pLsaI2x5zrllHESRNvXn32rtvpzqSVAWMrxs7EZTqC3b+Fr1lkXAIfH4AbuOpd4kG/L3 x6R9H3hlA9r6o32M1Qnlz+Ho3kZxODmoadJL4NRGE9TxYW1kU62ibyZnhdF9+jdqnjeA oUqg== X-Gm-Message-State: ANoB5plBJUGcjExv8AgtmBjx3fx2D+6Vy/IPU68Y+34C4qQRD8lqP77S mBqsoFi+EOkzfpnNv358iCKN7VP0uEYgAifsEznqWgeh9XM= X-Google-Smtp-Source: AA0mqf7wTc99N5NNudPkeMDZg4Rnudpyy5cGNjmfDE/11sIoFi82S2RocHHWGlINICxs00lL1OK1Wn1mkbIVSGBfgT4= X-Received: by 2002:a05:6102:49a:b0:3af:600e:84ec with SMTP id n26-20020a056102049a00b003af600e84ecmr31835634vsa.31.1669944878510; Thu, 01 Dec 2022 17:34:38 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::e2d; envelope-from=milan.zimmermann@gmail.com; helo=mail-vs1-xe2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249684 Archived-At: --0000000000004735e605eece575f Content-Type: text/plain; charset="UTF-8" To duplicate: Create a file like this: ============ cat ./bug-comment.esh { # { } ============ Source the file in Eshell: Actual: ~/tmp $ source ./bug-comment.esh { # { } Unmatched delimiter: 123 Expected: ~/tmp $ source ./bug-comment.esh { # { } The reported issue: Any brace anywhere in comment inside { .. } confuses Eshell. This applies for both source-ing a script and running interactively. This seem marginal, but can get annoying, I often comment out lines (to keep them around for now, to experiment, etc). If the commented out line contains a brace, the script breaks and it is very hard to find where the issue is. Thanks In GNU Emacs 29.0.60 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) System Description: openSUSE Tumbleweed Configured using: 'configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-build-details --without-pop --with-mailutils --without-hesiod --with-gameuser=:games --with-kerberos --with-kerberos5 --with-file-notification=inotify --with-modules --enable-autodepend --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --localstatedir=/var --sharedstatedir=/var/lib --libexecdir=/usr/libexec --with-file-notification=yes --enable-locallisppath=/usr/share/emacs/29.0.60/site-lisp:/usr/share/emacs/site-lisp --without-x --with-json --with-tree-sitter --without-xim --with-sound --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-rsvg --with-dbus --without-xft --without-gpm --with-pgtk --with-native-compilation=aot --with-toolkit-scroll-bars --with-libotf --with-m17n-flt --with-cairo --without-xwidgets --with-dumping=pdumper 'CFLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -D_GNU_SOURCE -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS' LDFLAGS=-flto=auto' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LANG: en_CA.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Eshell Minor modes in effect: shell-dirtrack-mode: t eshell-prompt-mode: t eshell-hist-mode: t eshell-pred-mode: t eshell-cmpl-mode: t eshell-proc-mode: t eshell-arg-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-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 line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils em-unix em-term term disp-table shell ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-extpipe em-cmpl em-dirs esh-var pcomplete comint ansi-osc ansi-color ring em-basic em-banner em-alias esh-mode eshell esh-cmd generator esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util cus-edit pp cus-start cus-load wid-edit cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib files-x rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 126101 10150) (symbols 48 10691 0) (strings 32 30559 1712) (string-bytes 1 962411) (vectors 16 21457) (vector-slots 8 421178 18493) (floats 8 40 38) (intervals 56 358 0) (buffers 992 13)) --0000000000004735e605eece575f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
To duplicate:

=
3D""Create a file like this:

=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D
cat ./bug-comment.esh
=C2=A0{
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 # =C2=A0{
=C2=A0}
=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D

Source the file in Eshell:

Actual:
~/tmp $ so= urce ./bug-comment.esh
=C2=A0{
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # = =C2=A0{
=C2=A0}
Unmatched delimiter: 123

Expected:
~/tmp $ = source ./bug-comment.esh
=C2=A0{
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = # =C2=A0{
=C2=A0}


The reported issue: Any brace anywhere in c= omment inside { .. } confuses Eshell. This applies
for both source-ing a= script and running interactively.

This seem marginal, but can get a= nnoying, I often comment out lines (to
keep them around for now, to expe= riment, etc). If the commented out line
contains a brace, the script bre= aks and it is very hard to find where the
issue is.

Thanks



In GNU Emacs 29.0.60 (build 1, x86_64-suse-linux-gnu, GTK+ Ver= sion
3.24.34, cairo version 1.17.6)
System Description: openSUSE Tumb= leweed

Configured using:
=C2=A0'configure --host=3Dx86_64-sus= e-linux-gnu --build=3Dx86_64-suse-linux-gnu
=C2=A0--program-prefix=3D --= disable-dependency-tracking --prefix=3D/usr
=C2=A0--exec-prefix=3D/usr -= -bindir=3D/usr/bin --sbindir=3D/usr/sbin
=C2=A0--sysconfdir=3D/etc --dat= adir=3D/usr/share --includedir=3D/usr/include
=C2=A0--libdir=3D/usr/lib6= 4 --libexecdir=3D/usr/libexec --localstatedir=3D/var
=C2=A0--sharedstate= dir=3D/var/lib --mandir=3D/usr/share/man
=C2=A0--infodir=3D/usr/share/in= fo --disable-build-details --without-pop
=C2=A0--with-mailutils --withou= t-hesiod --with-gameuser=3D:games
=C2=A0--with-kerberos --with-kerberos5= --with-file-notification=3Dinotify
=C2=A0--with-modules --enable-autode= pend --prefix=3D/usr
=C2=A0--mandir=3D/usr/share/man --infodir=3D/usr/sh= are/info --datadir=3D/usr/share
=C2=A0--localstatedir=3D/var --sharedsta= tedir=3D/var/lib
=C2=A0--libexecdir=3D/usr/libexec --with-file-notificat= ion=3Dyes
=C2=A0--enable-locallisppath=3D/usr/share/emacs/29.0.60/site-l= isp:/usr/share/emacs/site-lisp
=C2=A0--without-x --with-json --with-tree= -sitter --without-xim --with-sound
=C2=A0--with-xpm --with-jpeg --with-t= iff --with-gif --with-png --with-rsvg
=C2=A0--with-dbus --without-xft --= without-gpm --with-pgtk
=C2=A0--with-native-compilation=3Daot --with-too= lkit-scroll-bars --with-libotf
=C2=A0--with-m17n-flt --with-cairo --with= out-xwidgets --with-dumping=3Dpdumper
=C2=A0'CFLAGS=3D-O2 -Wall -U_F= ORTIFY_SOURCE -D_FORTIFY_SOURCE=3D3
=C2=A0-fstack-protector-strong -funw= ind-tables -fasynchronous-unwind-tables
=C2=A0-fstack-clash-protection -= Werror=3Dreturn-type -flto=3Dauto -D_GNU_SOURCE
=C2=A0-DGDK_DISABLE_DEPR= ECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS'
=C2=A0LDFLAGS= =3D-flto=3Dauto'

Configured features:
ACL CAIRO DBUS FREETYPE= GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LCMS2 LIBOTF LIBSELINU= X LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY
INOTIFY PDUMPER PGTK PNG= RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER= WEBP XIM GTK3 ZLIB

Important settings:
=C2=A0 value of $LANG: en= _CA.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-codin= g-system: utf-8-unix

Major mode: Eshell

Minor modes in effect= :
=C2=A0 shell-dirtrack-mode: t
=C2=A0 eshell-prompt-mode: t
=C2= =A0 eshell-hist-mode: t
=C2=A0 eshell-pred-mode: t
=C2=A0 eshell-cmpl= -mode: t
=C2=A0 eshell-proc-mode: t
=C2=A0 eshell-arg-mode: t
=C2= =A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 show-paren-mod= e: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2= =A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-= mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
= =C2=A0 blink-cursor-mode: t
=C2=A0 line-number-mode: t
=C2=A0 indent-= tabs-mode: t
=C2=A0 transient-mark-mode: t
=C2=A0 auto-composition-mo= de: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t<= br>
Load-path shadows:
None found.

Features:
(shadow sort m= ail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs r= fc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus= -util text-property-search time-date mm-decode mm-bodies
mm-encode mail-= parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 i= etf-drums mm-util mail-prsvr mail-utils em-unix em-term
term disp-table = shell ehelp em-script em-prompt em-ls em-hist em-pred
em-glob em-extpipe= em-cmpl em-dirs esh-var pcomplete comint ansi-osc
ansi-color ring em-ba= sic em-banner em-alias esh-mode eshell esh-cmd
generator esh-ext esh-opt= esh-proc esh-io esh-arg esh-module esh-groups
esh-util cus-edit pp cus-= start cus-load wid-edit cl-loaddefs comp
comp-cstr warnings icons subr-x= rx cl-seq cl-macs gv cl-extra help-mode
bytecomp byte-compile cl-lib fi= les-x rmc iso-transl tooltip cconv eldoc
paren electric uniquify ediff-h= ook vc-hooks lisp-float-type elisp-mode
mwheel term/pgtk-win pgtk-win te= rm/common-win pgtk-dnd tool-bar dnd
fontset image regexp-opt fringe tabu= lated-list replace newcomment
text-mode lisp-mode prog-mode register pag= e tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar = mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuff= er nadvice seq simple cl-generic
indonesian philippine cham georgian utf= -8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese e= ucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic ind= ian cyrillic chinese
composite emoji-zwj charscript charprop case-table = epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button = loaddefs
theme-loaddefs faces cus-face macroexp files window text-proper= ties
overlay sha1 md5 base64 format env code-pages mule custom widget ke= ymap
hashtable-print-readable backquote threads dbusbind inotify
dyna= mic-setting system-font-setting font-render-setting cairo gtk pgtk
lcms2= multi-tty make-network-process native-compile emacs)

Memory informa= tion:
((conses 16 126101 10150)
=C2=A0(symbols 48 10691 0)
=C2=A0(= strings 32 30559 1712)
=C2=A0(string-bytes 1 962411)
=C2=A0(vectors 1= 6 21457)
=C2=A0(vector-slots 8 421178 18493)
=C2=A0(floats 8 40 38)=C2=A0(intervals 56 358 0)
=C2=A0(buffers 992 13))
--0000000000004735e605eece575f--