Devuan bug report logs - #855
Invalid processing of Parameter Expansion

version graph

Package: bash; Maintainer for bash is (unknown); Source for bash is src:bash.

Reported by: murzik <lorietta2023@gmail.com>

Date: Thu, 15 Aug 2024 06:26:01 UTC

Severity: normal

Tags: upstream

Merged with 856

Found in version 5.2.15-2+b7

Done: Mark Hindley <mark@hindley.org.uk>

Reply or subscribe to this bug.

Toggle useless messages

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


Report forwarded to devuan-bugs@lists.dyne.org, lorietta2023@gmail.com, devuan-dev@lists.dyne.org:
bug#855; Package bash. (Thu, 15 Aug 2024 06:26:01 GMT) (full text, mbox, link).


Acknowledgement sent to murzik <lorietta2023@gmail.com>:
New bug report received and forwarded. Copy sent to lorietta2023@gmail.com, devuan-dev@lists.dyne.org. (Thu, 15 Aug 2024 06:26:02 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

From: murzik <lorietta2023@gmail.com>
To: submit@bugs.devuan.org
Subject: Invalid processing of Parameter Expansion
Date: Thu, 15 Aug 2024 17:24:40 +1100
[Message part 1 (text/plain, inline)]
Package: bash
X-Debbugs-Cc: lorietta2023@gmail.com
Version: 5.2.15-2+b7
Severity: normal
Tags: upstream

Dear Maintainer,
When executing:
$ Var='Example1 $(Example2)'
$ echo "${Var#*'$('}"

I see an error:
bash: command substitution: line 6: unexpected EOF while looking for 
matching `''

instend of the expected result of cutting off part of the text.
dash and busybox ash work as excepted:
$ echo "${Var#*'$('}"
Example2)


-- System Information:
Distributor ID: Devuan
Description: Devuan GNU/Linux 5 (daedalus)
Release: 5
Codename: daedalus
Architecture: x86_64

Kernel: Linux 6.1.0-23-amd64 (SMP w/6 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: OpenRC (via /run/openrc), PID 1: openrc-init

Versions of packages bash depends on:
ii base-files 12.4devuan3
ii debianutils 5.7-0.5~deb12u1
ii libc6 2.36-9+deb12u7
ii libtinfo6 6.4-4

Versions of packages bash recommends:
ii bash-completion 1:2.11-6

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

-- Configuration Files:
/etc/bash.bashrc [Errno 1] Operation not permitted: '/etc/bash.bashrc'
/etc/skel/.bash_logout [Errno 1] Operation not permitted: 
'/etc/skel/.bash_logout'
/etc/skel/.bashrc [Errno 1] Operation not permitted: '/etc/skel/.bashrc'
/etc/skel/.profile [Errno 1] Operation not permitted: 
'/etc/skel/.profile'

-- no debconf information


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

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#855; Package bash. (Thu, 15 Aug 2024 06:44:01 GMT) (full text, mbox, link).


Message #8 received at 855@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: murzik <lorietta2023@gmail.com>, 855@bugs.devuan.org
Subject: Re: [devuan-dev] bug#855: Invalid processing of Parameter Expansion
Date: Thu, 15 Aug 2024 07:41:19 +0100
Control: merge -1 856

Murzik,

On Thu, Aug 15, 2024 at 05:24:40PM +1100, murzik wrote:
>    Package: bash
>    X-Debbugs-Cc: lorietta2023@gmail.com
>    Version: 5.2.15-2+b7
>    Severity: normal
>    Tags: upstream

As you have identified, this is an upstream issue.

You would be best reporting it using bashbug(1). Bash appears not to have a
public bug tracker, so I cannot see if it has already been reported.

Thanks

Mark

Merged 855 856 Request was from Mark Hindley <mark@hindley.org.uk> to 855-submit@bugs.devuan.org. (Thu, 15 Aug 2024 06:44:02 GMT) (full text, mbox, link).


Reply sent to Mark Hindley <mark@hindley.org.uk>:
You have taken responsibility. (Thu, 15 Aug 2024 13:22:01 GMT) (full text, mbox, link).


Notification sent to murzik <lorietta2023@gmail.com>:
bug acknowledged by developer. (Thu, 15 Aug 2024 13:22:02 GMT) (full text, mbox, link).


Message #15 received at 855-done@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: g4sra <g4sra@protonmail.com>
Cc: 855-done@bugs.devuan.org
Subject: Re: [devuan-dev] bug#855: bug#855: Invalid processing of Parameter Expansion
Date: Thu, 15 Aug 2024 14:19:54 +0100
On Thu, Aug 15, 2024 at 01:08:10PM +0000, g4sra wrote:
> Escaping $ rather than trying to quote works as expected
> 
> echo "${Var#*\$(}"
> 
> Is quoting a valid method in bash ?

A good point.

Closing as there may not even be a bug here. Even if there is, it is upstream.

Mark

Reply sent to Mark Hindley <mark@hindley.org.uk>:
You have taken responsibility. (Thu, 15 Aug 2024 13:22:03 GMT) (full text, mbox, link).


Notification sent to murzik <lorietta2023@gmail.com>:
bug acknowledged by developer. (Thu, 15 Aug 2024 13:22:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri Nov 22 15:07:06 2024;