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#59337: 28.1; Eshell expression ${elisp_expression} inside String does not parse Date: Thu, 17 Nov 2022 11:30:49 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d9f45305edad1ef6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2905"; mail-complaints-to="usenet@ciao.gmane.io" To: 59337@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 17 17:33:51 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 1ovhpj-0000OA-8k for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Nov 2022 17:33:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovhp4-00039a-IX; Thu, 17 Nov 2022 11:33:06 -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 1ovhp1-000391-KO for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2022 11:33:04 -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 1ovhp0-0002od-Jg for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2022 11:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovhp0-0003jM-9X for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2022 11:33: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: Thu, 17 Nov 2022 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59337 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.166870273214267 (code B ref -1); Thu, 17 Nov 2022 16:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Nov 2022 16:32:12 +0000 Original-Received: from localhost ([127.0.0.1]:34123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovhoB-0003i1-Oh for submit@debbugs.gnu.org; Thu, 17 Nov 2022 11:32:12 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovho9-0003hs-21 for submit@debbugs.gnu.org; Thu, 17 Nov 2022 11:32:10 -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 1ovhnc-0002vC-DK for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2022 11:32:03 -0500 Original-Received: from mail-vk1-xa2c.google.com ([2607:f8b0:4864:20::a2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovhnZ-0002d2-6l for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2022 11:31:36 -0500 Original-Received: by mail-vk1-xa2c.google.com with SMTP id r13so1094820vkf.2 for ; Thu, 17 Nov 2022 08:31:28 -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=7/Ke8tftmrzM6Nz9sEF9Iy3ZOD28ovUfFKWOm9dFihI=; b=ZfFLvYLYgvzFTSMqMcvDvfqti9Flh1Pg//ElJAUJ4fn12V1MnCOIH8BPsQ+QXpj9gg ikRr8k9+5h+tgqurxrwWDn8ZsoJs5hK4aK2JS8C/WrYUDuTopu5+/pReMbzHUFmgeFF+ 0EXNGImQt4pfi2n16LetQwgWTwUOolmnyLdk3rUDRn1YHJ3KSmZ8HS9vpXtL4rJx4WoG yjIMpqNJ9aEy0hfVlLuEbfBZqeVd87pjUPNSeJShBjtKFAH8Zlqljof5CvVmVfCHgLQ7 YnIxlI/5yrUQgU7yqDkH/TksmiJPxukcRxQ4N0R9+iPL59CkNxDdbhemsn7gIKlBZWz2 pmVA== 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=7/Ke8tftmrzM6Nz9sEF9Iy3ZOD28ovUfFKWOm9dFihI=; b=Eq6/exZtPgmYWjVUjqFTRP+rEr/ZsELUdOmZEksAkDozN/Lf6FZJZosCGFrteTacrK wGqkZSvp3/jwxXzdyEEQNAFt8sC7NPkjlrEvgWDdCU0+/Ifhza6t2PtlWLPl0b4YJ4Cd gMRxAgohcBMo1vhiabU3ahkF2VWONTBpvpRIL9z9COUGbl44jyBg8S6j21J5LeYCWauU p4FY0JiJcfDDNq638tW7fu32TEnxmAFjWdQtIqORex4VH3tJPNAefYOVIPKf61VLD7u6 8keJsCaLlwp6aGissBQTRk059AuCtEiYeMtfBGrK3K1C5mJqU7lMFnHxcUAPAkC7/AYf 4DrA== X-Gm-Message-State: ANoB5plxJb/NH2ng2ptaJ6PKIajj5PN3SDxgrWyx/QsvIaIU5lG8mzSZ OE+MDHM49MrNSeJRQaa8S3UYpZXFWsBQfUCfSnNKl5+bESc= X-Google-Smtp-Source: AA0mqf7S40ceXpZYxEUy9R8vzdCh6UzaIGirNB8zdlwDkMZcViyHYFxLugfSTF1xGoBF+kBFCybn2XXk6e6TLrXam/4= X-Received: by 2002:a05:6122:2167:b0:3b7:a73:44a with SMTP id j7-20020a056122216700b003b70a73044amr1768222vkr.32.1668702686276; Thu, 17 Nov 2022 08:31:26 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::a2c; envelope-from=milan.zimmermann@gmail.com; helo=mail-vk1-xa2c.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:248127 Archived-At: --000000000000d9f45305edad1ef6 Content-Type: text/plain; charset="UTF-8" ================================ Emacs 28.1 running as emacs -Q M-x eshell ~/tmp $ echo "Epoch started on ${date 0}" Expected result: "Epoch started on Wed Dec 31 19:00:00 196" Actual result: "Epoch started on date 0: command not found" Comments: It appears that inside a string, in expression such as echo "Epoch started on ${elisp_expression}" is not parsed by the elisp parser into ${commands arguments}. Instead, the full string "elisp_expression" ("date 0" in the example) is being looked up as a command. ================================ In GNU Emacs 28.1 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: openSUSE Tumbleweed Configured using: 'configure --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 --with-native-compilation --enable-locallisppath=/usr/share/emacs/28.1/site-lisp:/usr/share/emacs/site-lisp --with-x --with-xim --with-sound --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-rsvg --with-dbus --with-xft --without-gpm --with-x-toolkit=gtk3 --with-toolkit-scroll-bars --x-includes=/usr/include --x-libraries=/usr/lib64 --with-libotf --with-m17n-flt --with-cairo --with-xwidgets --build=x86_64-suse-linux --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 -g -D_GNU_SOURCE -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label -fno-optimize-sibling-calls -DPDMP_BASE='\''"emacs-gtk"'\''' LDFLAGS=-Wl,-O2' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LC_NUMERIC: POSIX value of $LANG: en_CA.UTF-8 locale-coding-system: utf-8-unix Major mode: Eshell Minor modes in effect: text-scale-mode: t 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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch dired-aux dired dired-loaddefs cl-seq time-date subr-x face-remap em-unix em-term term disp-table shell ehelp em-script em-prompt em-ls cl-loaddefs cl-lib em-hist em-pred em-glob em-cmpl em-dirs esh-var pcomplete comint ansi-color ring em-basic em-banner em-alias esh-mode eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util seq byte-opt gv bytecomp byte-compile cconv delsel lpr easy-mmode pcase iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-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 cl-generic 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 simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 97578 7734) (symbols 48 8669 0) (strings 32 26569 2292) (string-bytes 1 915418) (vectors 16 17475) (vector-slots 8 319768 16435) (floats 8 37 31) (intervals 56 703 0) (buffers 992 14)) --000000000000d9f45305edad1ef6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Emacs 28.1 running as

ema= cs -Q

M-x eshell

~/tmp $ echo "Epoch started on ${date 0= }"

Expected result: "Epoch started on Wed Dec 31 19:00:00 = 196"
Actual result: =C2=A0 "Epoch started on date 0: command n= ot found"

Comments: It appears that inside a string, in express= ion such as

echo "Epoch started on ${elisp_expression}"
is not parsed by the elisp parser into ${commands arguments}. Instead,= the full string "elisp_expression" ("date 0" in the ex= ample) is being looked up as a command.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

<= br>
In GNU Emacs 28.1 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24= .34, cairo version 1.17.6)
Windowing system distributor 'The X.Org F= oundation', version 11.0.12101004
System Description: openSUSE Tumbl= eweed

Configured using:
=C2=A0'configure --disable-build-deta= ils --without-pop --with-mailutils
=C2=A0--without-hesiod --with-gameuse= r=3D:games --with-kerberos
=C2=A0--with-kerberos5 --with-file-notificati= on=3Dinotify --with-modules
=C2=A0--enable-autodepend --prefix=3D/usr --= mandir=3D/usr/share/man
=C2=A0--infodir=3D/usr/share/info --datadir=3D/u= sr/share --localstatedir=3D/var
=C2=A0--sharedstatedir=3D/var/lib --libe= xecdir=3D/usr/libexec
=C2=A0--with-file-notification=3Dyes --with-native= -compilation
=C2=A0--enable-locallisppath=3D/usr/share/emacs/28.1/site-l= isp:/usr/share/emacs/site-lisp
=C2=A0--with-x --with-xim --with-sound --= with-xpm --with-jpeg --with-tiff
=C2=A0--with-gif --with-png --with-rsvg= --with-dbus --with-xft --without-gpm
=C2=A0--with-x-toolkit=3Dgtk3 --wi= th-toolkit-scroll-bars
=C2=A0--x-includes=3D/usr/include --x-libraries= =3D/usr/lib64 --with-libotf
=C2=A0--with-m17n-flt --with-cairo --with-xw= idgets --build=3Dx86_64-suse-linux
=C2=A0--with-dumping=3Dpdumper 'C= FLAGS=3D-O2 -Wall -U_FORTIFY_SOURCE
=C2=A0-D_FORTIFY_SOURCE=3D3 -fstack-= protector-strong -funwind-tables
=C2=A0-fasynchronous-unwind-tables -fst= ack-clash-protection
=C2=A0-Werror=3Dreturn-type -flto=3Dauto -g -D_GNU_= SOURCE
=C2=A0-DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATI= ON_WARNINGS
=C2=A0-pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unus= ed-label
=C2=A0-fno-optimize-sibling-calls -DPDMP_BASE=3D'\''= ;"emacs-gtk"'\'''
=C2=A0LDFLAGS=3D-Wl,-O2'=

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS= GSETTINGS HARFBUZZ JPEG JSON
LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2= M17N_FLT MODULES NATIVE_COMP
NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SO= UND THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB=

Important settings:
=C2=A0 value of $LC_NUMERIC: POSIX
=C2=A0= value of $LANG: en_CA.UTF-8
=C2=A0 locale-coding-system: utf-8-unix
=
Major mode: Eshell

Minor modes in effect:
=C2=A0 text-scale-m= ode: t
=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-c= mpl-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-= mode: 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-shad= ow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 = auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-n= umber-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mode: = t

Load-path shadows:
None found.

Features:
(shadow sort= mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa
derived epg = rfc6068 epg-config gnus-util rmail rmail-loaddefs
auth-source eieio eiei= o-core cl-macs eieio-loaddefs password-cache json
map text-property-sear= ch mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils= mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-= utils misearch multi-isearch
dired-aux dired dired-loaddefs cl-seq time-= date subr-x face-remap
em-unix em-term term disp-table shell ehelp em-sc= ript em-prompt em-ls
cl-loaddefs cl-lib em-hist em-pred em-glob em-cmpl = em-dirs esh-var
pcomplete comint ansi-color ring em-basic em-banner em-a= lias esh-mode
eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh= -module
esh-groups esh-util seq byte-opt gv bytecomp byte-compile cconv = delsel
lpr easy-mmode pcase iso-transl tooltip eldoc paren electric uniq= uify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-= win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringetabulated-list replace newcomment text-mode lisp-mode prog-mode register<= br>page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scrol= l-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame mi= nibuffer cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibeta= n thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romani= an slovak czech european ethiopic indian cyrillic
chinese composite emoj= i-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help simple = abbrev obarray cl-preloaded nadvice button
loaddefs faces cus-face macro= exp files window text-properties overlay
sha1 md5 base64 format env code= -pages mule custom widget
hashtable-print-readable backquote threads xwi= dget-internal dbusbind
inotify lcms2 dynamic-setting system-font-setting= font-render-setting
cairo move-toolbar gtk x-toolkit x multi-tty make-n= etwork-process
native-compile emacs)

Memory information:
((con= ses 16 97578 7734)
=C2=A0(symbols 48 8669 0)
=C2=A0(strings 32 26569 = 2292)
=C2=A0(string-bytes 1 915418)
=C2=A0(vectors 16 17475)
=C2= =A0(vector-slots 8 319768 16435)
=C2=A0(floats 8 37 31)
=C2=A0(interv= als 56 703 0)
=C2=A0(buffers 992 14))
<= br>
--000000000000d9f45305edad1ef6--