Your message dated Sun, 28 Apr 2024 04:15:18 +0200
with message-id <b336fc6d-9af5-42e7-8efb-c41a12e62...@svario.it>
and subject line Re: Bug#784331: bash: wrong backtick escaping on autocomplete
has caused the Debian Bug report #784331,
regarding bash: wrong backtick escaping on autocomplete
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.)


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

Dear Maintainer,

interactive bash can escape one backtick properly, but not
if there are two backticks in a path

preparations:

$ mkdir /tmp/back\`tick
$ touch /tmp/back\`tick/back\`tick

then:

1. type in "stat /tmp/back" and press <Tab>
2. a correct path is autocompleted as: "stat /tmp/back\`tick/"
3. press <Tab> one more time
4. an invalid path appears on the command line: "stat /tmp/back`tick/back`tick"

notice that backslash removed when the second backtick appeared in a path

the expected behavior is protecting backticks with backslashes

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: armhf (armv7l)
Foreign Architectures: armel

Kernel: Linux 3.0.35-ygrex-fx6-6.3+ (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bash depends on:
ii  base-files   9
ii  dash         0.5.7-4+b1
ii  debianutils  4.5
ii  libc6        2.19-18
ii  libncurses5  5.9+20140913-1+b1
ii  libtinfo5    5.9+20140913-1+b1

Versions of packages bash recommends:
pn  bash-completion  <none>

Versions of packages bash suggests:
pn  bash-doc  <none>

-- no debconf information

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

On Tue, 05 May 2015 16:10:05 +0300 yg...@ygrex.ru wrote:
interactive bash can escape one backtick properly, but not
if there are two backticks in a path

preparations:

$ mkdir /tmp/back\`tick
$ touch /tmp/back\`tick/back\`tick

then:

1. type in "stat /tmp/back" and press <Tab>
2. a correct path is autocompleted as: "stat /tmp/back\`tick/"
3. press <Tab> one more time
4. an invalid path appears on the command line: "stat /tmp/back`tick/back`tick"

Hi,

this issue does not seem to affect version 5.0-6 and later of bash.

    $ mkdir /tmp/back\`tick
    $ touch /tmp/back\`tick/back\`tick
    $ stat /tmp/back<TAB>
    $ stat /tmp/back\`tick/<TAB>
    $ stat /tmp/back\`tick/back\`tick

Please reopen this bug if you can still reproduce this issue.

Regards,

--
Gioele Barabucci

--- End Message ---

Reply via email to