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>

Full log


🔗 View this message in rfc822 format

MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
X-Loop: owner@bugs.devuan.org
From: "Devuan bug Tracking System" <owner@bugs.devuan.org>
To: murzik <lorietta2023@gmail.com>
Subject: bug#856 closed by Mark Hindley <mark@hindley.org.uk> (Re:
 [devuan-dev] bug#855: bug#855: Invalid processing of Parameter Expansion)
Message-ID: <handler.856.D855.172372806532750.notifdone@bugs.devuan.org>
References: <Zr4Aes4_rdS0CiKR@hindley.org.uk> <W3Y8IS.3NP9EISZ8HOT1@gmail.com>
X-Devuan-PR-Message: they-closed 856
X-Devuan-PR-Package: bash
X-Devuan-PR-Keywords: upstream
Reply-To: 856@bugs.devuan.org
Date: Thu, 15 Aug 2024 13:22:04 +0000
Content-Type: multipart/mixed; boundary="----------=_1723728124-32760-3"
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the bash package:

#856: bash: Invalid processing of Parameter Expansion

It has been closed by Mark Hindley <mark@hindley.org.uk>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mark Hindley <mark@hindley.org.uk> by
replying to this email.


-- 
855: https://bugs.devuan.org/cgi/bugreport.cgi?bug=855
Devuan Bug Tracking System
Contact owner@bugs.devuan.org with problems
[Message part 2 (message/rfc822, inline)]
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
[Message part 3 (message/rfc822, inline)]
From: murzik <lorietta2023@gmail.com>
To: submit@bugs.devuan.org
Subject: bash: Invalid processing of Parameter Expansion
Date: Thu, 15 Aug 2024 17:31:08 +1100
[Message part 4 (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 5 (text/html, inline)]

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: Thu Sep 19 22:27:53 2024;