Devuan bug report logs - #856
bash: 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:32:01 UTC

Severity: normal

Tags: upstream

Merged with 855

Found in version 5.2.15-2+b7

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

Full log


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

Received: (at 855-done) by bugs.devuan.org; 15 Aug 2024 13:21:05 +0000
Return-Path: <mark@hindley.org.uk>
Delivered-To: bugs@devuan.org
Received: from email.devuan.org [2a01:4f9:fff1:13::5fd9:f9e4]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Thu, 15 Aug 2024 13:21:05 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id RcneGn0AvmZCMwAAmSBk0A
	(envelope-from <mark@hindley.org.uk>)
	for <bugs@devuan.org>; Thu, 15 Aug 2024 13:19:57 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 30593403; Thu, 15 Aug 2024 13:19:56 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS,
	T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; envelope-from=mark@hindley.org.uk; receiver=<UNKNOWN> 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id 8094B15B
	for <855-done@bugs.devuan.org>; Thu, 15 Aug 2024 13:19:56 +0000 (UTC)
Received: from hindley.org.uk (apollo.hindleynet [192.168.1.3])
	by mx.hindley.org.uk (Postfix) with SMTP id 21470C9;
	Thu, 15 Aug 2024 14:19:55 +0100 (BST)
Received: (nullmailer pid 566 invoked by uid 1000);
	Thu, 15 Aug 2024 13:19:54 -0000
Date: Thu, 15 Aug 2024 14:19:54 +0100
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
Message-ID: <Zr4Aes4_rdS0CiKR@hindley.org.uk>
References: <4TX8IS.BF9958MEUGDW@gmail.com>
 <4TX8IS.BF9958MEUGDW@gmail.com>
 <Zr2jD5RSnwNUFqA4@hindley.org.uk>
 <inQ67TS7WI8gVwwLGNIgl3wXHNXNHBWcYgKeQCRdC8TQqQNq7rzvDGnUDcto5wyZPbqAR8AMvgS1F70KmjabMaYWtOy2AHWRoc_X0EsFX9E=@protonmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <inQ67TS7WI8gVwwLGNIgl3wXHNXNHBWcYgKeQCRdC8TQqQNq7rzvDGnUDcto5wyZPbqAR8AMvgS1F70KmjabMaYWtOy2AHWRoc_X0EsFX9E=@protonmail.com>
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: Thu Sep 19 22:14:34 2024;