GNU bug report logs - #59403
29.0.50; Variable with value starting with dash "-" fails to create

Previous Next

Package: emacs;

Reported by: Milan Zimmermann <milan.zimmermann <at> gmail.com>

Date: Sun, 20 Nov 2022 06:09:02 UTC

Severity: normal

Tags: notabug

Found in version 29.0.50

Done: Jim Porter <jporterbugs <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59403 in the body.
You can then email your comments to 59403 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#59403; Package emacs. (Sun, 20 Nov 2022 06:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Milan Zimmermann <milan.zimmermann <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 20 Nov 2022 06:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Milan Zimmermann <milan.zimmermann <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; Variable with value starting with dash "-" fails to create
Date: Sun, 20 Nov 2022 01:08:17 -0500
[Message part 1 (text/plain, inline)]
Actual:

~/dev $ export a="-anything"
~/dev $ echo $a
echo: unrecognized option -a
~/dev/ $ echo "$a"
echo: unrecognized option -a

Expected:

~/dev $ export a="-anything"
~/dev $ echo $a
-anything
~/dev/ $ echo "$a"
-anything





In GNU Emacs 29.0.50 (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.50/site-lisp:/usr/share/emacs/site-lisp
 --without-x --with-json --without-xim --with-sound --with-xpm
 --with-jpeg --with-tiff --with-gif --with-png --with-rsvg --with-dbus
 --without-xft --without-gpm --with-pgtk --without-native-compilation
 --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 NOTIFY INOTIFY
PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS 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:
  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
  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 mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils rx time-date face-remap
em-unix em-term term disp-table shell subr-x 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
icons wid-edit cl-loaddefs 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 emacs)

Memory information:
((conses 16 79994 8870)
 (symbols 48 8903 0)
 (strings 32 24693 2556)
 (string-bytes 1 733474)
 (vectors 16 15065)
 (vector-slots 8 205344 7378)
 (floats 8 37 35)
 (intervals 56 1103 0)
 (buffers 984 11))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59403; Package emacs. (Sun, 20 Nov 2022 06:51:02 GMT) Full text and rfc822 format available.

Message #8 received at 59403 <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: Milan Zimmermann <milan.zimmermann <at> gmail.com>, 59403 <at> debbugs.gnu.org
Subject: Re: bug#59403: 29.0.50; Variable with value starting with dash "-"
 fails to create
Date: Sat, 19 Nov 2022 22:50:18 -0800
On 11/19/2022 10:08 PM, Milan Zimmermann wrote:
> Actual:
> 
> ~/dev $ export a="-anything"
> ~/dev $ echo $a
> echo: unrecognized option -a
> ~/dev/ $ echo "$a"
> echo: unrecognized option -a
> 
> Expected:
> 
> ~/dev $ export a="-anything"
> ~/dev $ echo $a
> -anything
> ~/dev/ $ echo "$a"
> -anything
[snip]
> Major mode: Eshell

Eshell's 'echo' command works somewhat different from other shells (in 
more ways than just this). The Eshell way to spell this is:

  ~ $ echo -- $a
  -anything

(Maybe this could be a feature enhancement for Eshell's echo, but "--" 
is the usual way to do this sort of thing with other commands, at least 
these days. Arguably, this makes Eshell's echo better, since it's more 
consistent with those other commands... at the expense of being less 
consistent with other implementations of echo.)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59403; Package emacs. (Mon, 21 Nov 2022 08:52:02 GMT) Full text and rfc822 format available.

Message #11 received at 59403 <at> debbugs.gnu.org (full text, mbox):

From: Milan Zimmermann <milan.zimmermann <at> gmail.com>
To: 59403 <at> debbugs.gnu.org
Subject: GNU bug report logs - #59403 29.0.50; Variable with value starting
 with dash "-" fails to create
Date: Mon, 21 Nov 2022 03:50:27 -0500
[Message part 1 (text/plain, inline)]
Thanks for your explanation; I experimented with it more and agree with the
reasoning - not a bug

Please go ahead and close the bug or what status you find appropriate - I
do not think I can change status.

Regards,
Milan Zimmermann

PS: I have one or two things around variables that I could see in the
feature vs bug realm. Should those be reported, or first checked on an
appropriate forum (what would such a forum be?)

Thanks
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 21 Nov 2022 10:24:02 GMT) Full text and rfc822 format available.

Reply sent to Jim Porter <jporterbugs <at> gmail.com>:
You have taken responsibility. (Mon, 21 Nov 2022 18:04:01 GMT) Full text and rfc822 format available.

Notification sent to Milan Zimmermann <milan.zimmermann <at> gmail.com>:
bug acknowledged by developer. (Mon, 21 Nov 2022 18:04:01 GMT) Full text and rfc822 format available.

Message #18 received at 59403-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: Milan Zimmermann <milan.zimmermann <at> gmail.com>, 59403-done <at> debbugs.gnu.org
Subject: Re: bug#59403: GNU bug report logs - #59403 29.0.50; Variable with
 value starting with dash "-" fails to create
Date: Mon, 21 Nov 2022 10:03:10 -0800
On 11/21/2022 12:50 AM, Milan Zimmermann wrote:
> Thanks for your explanation; I experimented with it more and agree with 
> the reasoning - not a bug
> 
> Please go ahead and close the bug or what status you find appropriate - 
> I do not think I can change status.

Thanks, closing.

I'm not sure if there's a special permission required, but if you add 
"-done" to the local part of the debbugs email address when replying 
(see this message for an example), it should close the bug.

> PS: I have one or two things around variables that I could see in the 
> feature vs bug realm. Should those be reported, or first checked on an 
> appropriate forum (what would such a forum be?)

I'd recommend emacs-devel <at> gnu.org if you'd like to discuss things with a 
wider audience first. Otherwise, both features and bugs can go in 
bug-gnu-emacs <at> gnu.org, I'd say.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59403; Package emacs. (Tue, 22 Nov 2022 02:10:02 GMT) Full text and rfc822 format available.

Message #21 received at 59403-done <at> debbugs.gnu.org (full text, mbox):

From: Milan Zimmermann <milan.zimmermann <at> gmail.com>
To: Jim Porter <jporterbugs <at> gmail.com>
Cc: 59403-done <at> debbugs.gnu.org
Subject: Re: bug#59403: GNU bug report logs - #59403 29.0.50; Variable with
 value starting with dash "-" fails to create
Date: Mon, 21 Nov 2022 21:09:07 -0500
[Message part 1 (text/plain, inline)]
Thanks for both the pointer to bug#-done to close the issue, and for the
discussion list  emacs-devel <at> gnu.org pointer.



On Mon, Nov 21, 2022 at 1:03 PM Jim Porter <jporterbugs <at> gmail.com> wrote:

> On 11/21/2022 12:50 AM, Milan Zimmermann wrote:
> > Thanks for your explanation; I experimented with it more and agree with
> > the reasoning - not a bug
> >
> > Please go ahead and close the bug or what status you find appropriate -
> > I do not think I can change status.
>
> Thanks, closing.
>
> I'm not sure if there's a special permission required, but if you add
> "-done" to the local part of the debbugs email address when replying
> (see this message for an example), it should close the bug.
>
> > PS: I have one or two things around variables that I could see in the
> > feature vs bug realm. Should those be reported, or first checked on an
> > appropriate forum (what would such a forum be?)
>
> I'd recommend emacs-devel <at> gnu.org if you'd like to discuss things with a
> wider audience first. Otherwise, both features and bugs can go in
> bug-gnu-emacs <at> gnu.org, I'd say.
>
>
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 20 Dec 2022 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 242 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.