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: Mark Hindley <mark@hindley.org.uk>
Subject: bug#855: marked as done (Invalid processing of Parameter Expansion)
Message-ID: <handler.855.D855.172372806532750.ackdone@bugs.devuan.org>
References: <Zr4Aes4_rdS0CiKR@hindley.org.uk> <4TX8IS.BF9958MEUGDW@gmail.com>
X-Devuan-PR-Message: closed 855
X-Devuan-PR-Package: bash
X-Devuan-PR-Keywords: upstream
Reply-To: 855@bugs.devuan.org
Date: Thu, 15 Aug 2024 13:22:01 +0000
Content-Type: multipart/mixed; boundary="----------=_1723728121-32760-0"
[Message part 1 (text/plain, inline)]
Your message dated Thu, 15 Aug 2024 14:19:54 +0100
with message-id <Zr4Aes4_rdS0CiKR@hindley.org.uk>
and subject line Re: [devuan-dev] bug#855: bug#855: Invalid processing of Parameter Expansion
has caused the Devuan bug report #855,
regarding Invalid processing of Parameter Expansion
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 owner@bugs.devuan.org
immediately.)


-- 
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: 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 3 (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 4 (text/html, inline)]
[Message part 5 (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

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 21:00:13 2024;