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

X-Loop: owner@bugs.devuan.org
Subject: bug#855: Invalid processing of Parameter Expansion
Reply-To: murzik <lorietta2023@gmail.com>, 855@bugs.devuan.org
Resent-From: murzik <lorietta2023@gmail.com>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: lorietta2023@gmail.com, devuan-dev@lists.dyne.org
X-Loop: owner@bugs.devuan.org
Resent-Date: Thu, 15 Aug 2024 06:26:01 +0000
Resent-Message-ID: <handler.855.B.17237031363792@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 855
X-Devuan-PR-Package: bash
X-Devuan-PR-Keywords: upstream
Received: via spool by submit@bugs.devuan.org id=B.17237031363792
          (code B); Thu, 15 Aug 2024 06:26:01 +0000
Received: (at submit) by bugs.devuan.org; 15 Aug 2024 06:25:36 +0000
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 06:25:36 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id 9WcIJhGfvWamIwAAmSBk0A
	(envelope-from <lorietta2023@gmail.com>)
	for <bugs@devuan.org>; Thu, 15 Aug 2024 06:24:17 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 8098C3FA; Thu, 15 Aug 2024 06:24:17 +0000 (UTC)
Authentication-Results: email.devuan.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=UpUEu3Y8;
	dkim-atps=neutral
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,
	T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::242; helo=mail-lj1-x242.google.com; envelope-from=lorietta2023@gmail.com; receiver=<UNKNOWN> 
Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242])
	by email.devuan.org (Postfix) with ESMTPS id 1D5104E
	for <submit@bugs.devuan.org>; Thu, 15 Aug 2024 06:24:13 +0000 (UTC)
Received: by mail-lj1-x242.google.com with SMTP id 38308e7fff4ca-2ef2cce8be8so6676251fa.1
        for <submit@bugs.devuan.org>; Wed, 14 Aug 2024 23:24:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1723703053; x=1724307853; darn=bugs.devuan.org;
        h=mime-version:message-id:to:subject:from:date:from:to:cc:subject
         :date:message-id:reply-to;
        bh=SmakhmTPiRNyqDHnbUpAUNIhIskBawRiFr8ou0CTK+8=;
        b=UpUEu3Y8y+d5uANv5bDxVxSSE6xv36CXPFvZasmi1epSdE4ZQbQWscvYlNAxvlfDOC
         kiFD6/AiNiGCUhGdBCii3elR2SWD/vDIYGmAn8mQpfK7llDAltyEE7DgudDpBq2YlQNY
         XBGMFknFqrUelWU47UpYv0tM/o623dA4sTHhZrnR79x+uV30W2RqpDmUrYzy7IJSbNKZ
         k4ZE0sB5/QeeNCQrrj9YwvNVX4Xgov4mpTyw298blNjicDiG/V0h49WBdxnF1HWMHZSO
         gtgawOsngdMoYvdcy5400/U2yjYheRNhfKGUn/mycL7JEyy5YycIwAc42J/W2snt7ocJ
         nkug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1723703053; x=1724307853;
        h=mime-version:message-id:to:subject:from:date:x-gm-message-state
         :from:to:cc:subject:date:message-id:reply-to;
        bh=SmakhmTPiRNyqDHnbUpAUNIhIskBawRiFr8ou0CTK+8=;
        b=cCrNTYQmuBovGQuuicHfPKKbHKQYlz4nzh5iXntg5OaDskwKfV97D0tTcw8C7uyumL
         GjSzWcWCvKkxTsuCjZ/wcwNBpXdNulQ1FAK9sNxMWXE8mr5IC8RmlMZWtxq0QN4xmBKk
         D7rIs915jErXw7jgMtr50pFaUZS/DJ2dXK/MmpTygWhHGIBTC4YcZm/jO0DuexP+MJ0I
         AbEYXFmoyXp9ooRWR/QFrrI3IVbGu6RHvHYf4WKpENrwRWabVJ3f9YdWKd9ZEpcS2Fu9
         tEil7UIvUs93Q3mYuzip0GBNgxh+gzlpbz+DgdxwogI/kuFUrSS2GIscuNg6jPyn9Eb+
         UAyw==
X-Gm-Message-State: AOJu0Yx9osZFPOYAAFnMev9MMVM/aqKXoPj4+9sffcv+HvsrzCGoagoY
	y58yzXVWHa4d1tpXr6aY06huuMUq0JSSNaCfuWSp/8vlY32bBHjZ67YJehoy
X-Google-Smtp-Source: AGHT+IF80VJ+ER5X/eWXfyLVcQ/ppS7lo227U04OOCZSU9ZxFidff6miO3YojdR382/Z4P6e2IUFHg==
X-Received: by 2002:a2e:f09:0:b0:2ef:1d8d:21fd with SMTP id 38308e7fff4ca-2f3aa1987eamr33112541fa.2.1723703052408;
        Wed, 14 Aug 2024 23:24:12 -0700 (PDT)
Received: from [192.168.0.70] ([188.113.129.153])
        by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ded71ee3sm38449865e9.29.2024.08.14.23.24.10
        for <submit@bugs.devuan.org>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Wed, 14 Aug 2024 23:24:11 -0700 (PDT)
Date: Thu, 15 Aug 2024 17:24:40 +1100
From: murzik <lorietta2023@gmail.com>
To: submit@bugs.devuan.org
Message-Id: <4TX8IS.BF9958MEUGDW@gmail.com>
X-Mailer: geary/43.0
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=-jcJTMusiG4kpEaQX6Uyk"
[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)]

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 20:38:15 2024;