Your message dated Mon, 25 Mar 2024 21:21:55 +0100
with message-id <d6710779-b55d-44fc-ae02-adbc4e0bc...@svario.it>
and subject line Re: Bug#504642: bash doesn't treat quoted "!" chars in 
""-strings correctly
has caused the Debian Bug report #504642,
regarding bash doesn't treat quoted "!" chars in ""-strings correctly
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
504642: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504642
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: bash
Version: 3.1dfsg-8
Severity: normal


Bash doesn't correctly unquote !-characters inside "-quoted strings when
passing the arguments to commands.

For example:

   echo "\!"            # prints \!
   echo \!              # prints !

Interestignly enough, other parts of bash corerctly unquote the !
character, for example, when pressing tab on the first echo command
converts to the second form when a ! file exists:

   echo "\!"<tab> =>
   echo \!

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-etchnhalf.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash depends on:
ii  base-files                4.0.4          Debian base system miscellaneous f
ii  debianutils               2.15.3         Miscellaneous utilities specific t
hi  libc6                     2.7-12         GNU C Library: Shared libraries
ii  libncurses5               5.6+20080531-1 Shared libraries for terminal hand

bash recommends no packages.

Versions of packages bash suggests:
hi  bash-doc                      3.2-4      Documentation and examples for the

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 5.0-6

On Wed, 05 Nov 2008 22:11:53 +0100 Marc Lehmann <debian-report...@plan9.de> wrote:
Package: bash
Version: 3.1dfsg-8
Severity: normal


Bash doesn't correctly unquote !-characters inside "-quoted strings when
passing the arguments to commands.

For example:

   echo "\!"          # prints \!
   echo \!              # prints !

As Kalle Olavi Niemitalo explained, this is an intended and spec-compliant behavior. Other shells behave in the same way.

Interestignly enough, other parts of bash corerctly unquote the !
character, for example, when pressing tab on the first echo command
converts to the second form when a ! file exists:

   echo "\!"<tab> =>
   echo \!

The completion logic in bash 5.0-6 and later no longer perform that erroneous expansion.

Feel free to reopen this bug if you can still reproduce this issue.

Regards,

--
Gioele Barabucci

--- End Message ---

Reply via email to