X-Loop: [email protected] Subject: bug#855: Invalid processing of Parameter Expansion Reply-To: murzik <[email protected]>, [email protected] Resent-From: murzik <[email protected]> Resent-To: [email protected] Resent-CC: [email protected], [email protected] X-Loop: [email protected] Resent-Date: Thu, 15 Aug 2024 06:26:01 +0000 Resent-Message-ID: <[email protected]> Resent-Sender: [email protected] X-Devuan-PR-Message: report 855 X-Devuan-PR-Package: bash X-Devuan-PR-Keywords: upstream Received: via spool by [email protected] 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: [email protected] 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 <[email protected]>) for <[email protected]>; 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 [email protected] 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; [email protected]; 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 <[email protected]>; Thu, 15 Aug 2024 06:24:13 +0000 (UTC) Received: by mail-lj1-x242.google.com with SMTP id 38308e7fff4ca-2ef2cce8be8so6676251fa.1 for <[email protected]>; 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 <[email protected]> (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 <[email protected]> To: [email protected] Message-Id: <[email protected]> X-Mailer: geary/43.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-jcJTMusiG4kpEaQX6Uyk" --=-jcJTMusiG4kpEaQX6Uyk Content-Type: text/plain; charset=us-ascii; format=flowed Package: bash X-Debbugs-Cc: [email protected] 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 --=-jcJTMusiG4kpEaQX6Uyk Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable <div id=3D"geary-body" dir=3D"auto"><div>Package: bash</div><div>X-Debbugs-= Cc: [email protected]</div><div>Version: 5.2.15-2+b7</div><div>Severit= y: normal</div><div>Tags: upstream</div><div><br></div><div>Dear Maintainer= ,</div><div>When executing:<br></div><div>$ Var=3D'Example1 $(Example2)'</d= iv><div>$ echo "${Var#*'$('}"</div><div><br></div><div>I see an error:</div= ><div>bash: command substitution: line 6: unexpected EOF while looking for = matching `''</div><div><br></div><div>instend of the expected result of cut= ting off part of the text.</div><div>dash and busybox ash work as excepted:= </div><div>$ echo "${Var#*'$('}"</div><div>Example2)</div><div><br></div><d= iv><br></div><div>-- System Information:</div><div>Distributor ID: Devuan</= div><div>Description: Devuan GNU/Linux 5 (daedalus)</div><div>Release: 5</d= iv><div>Codename: daedalus</div><div>Architecture: x86_64</div><div><br></d= iv><div>Kernel: Linux 6.1.0-23-amd64 (SMP w/6 CPU threads; PREEMPT)</div><d= iv>Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE</div><div>Locale: LANG= =3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-8), LANGUAGE not set<= /div><div>Shell: /bin/sh linked to /bin/dash</div><div>Init: OpenRC (via /r= un/openrc), PID 1: openrc-init</div><div><br></div><div>Versions of package= s bash depends on:</div><div>ii base-files 12.4devuan3</div><div>ii deb= ianutils 5.7-0.5~deb12u1</div><div>ii libc6 2.36-9+deb12u7</div><d= iv>ii libtinfo6 6.4-4</div><div><br></div><div>Versions of packages bas= h recommends:</div><div>ii bash-completion 1:2.11-6</div><div><br></div><= div>Versions of packages bash suggests:</div><div>pn bash-doc <none>= ;</div><div><br></div><div>-- Configuration Files:</div><div>/etc/bash.bash= rc [Errno 1] Operation not permitted: '/etc/bash.bashrc'</div><div>/etc/ske= l/.bash_logout [Errno 1] Operation not permitted: '/etc/skel/.bash_logout'<= /div><div>/etc/skel/.bashrc [Errno 1] Operation not permitted: '/etc/skel/.= bashrc'</div><div>/etc/skel/.profile [Errno 1] Operation not permitted: '/e= tc/skel/.profile'</div><div><br></div><div>-- no debconf information</div><= div><br></div></div> --=-jcJTMusiG4kpEaQX6Uyk--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: murzik <[email protected]> Subject: bug#855: Acknowledgement (Invalid processing of Parameter Expansion) Message-ID: <[email protected]> References: <[email protected]> X-Devuan-PR-Message: ack 855 X-Devuan-PR-Package: bash X-Devuan-PR-Keywords: upstream Reply-To: [email protected] Date: Thu, 15 Aug 2024 06:26:02 +0000 Thank you for filing a new bug report with Devuan. You can follow progress on this bug here: 855: https://bugs.devuan.org/cgi/= bugreport.cgi?bug=3D855. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. As you requested using X-Debbugs-CC, your message was also forwarded to [email protected] (after having been given a bug report number, if it did not have one). Your message has been sent to the package maintainer(s): [email protected] If you wish to submit further information on this problem, please send it to [email protected]. Please do not send mail to [email protected] unless you wish to report a problem with the Bug-tracking system. --=20 855: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D855 Devuan Bug Tracking System Contact [email protected] with problems
X-Loop: [email protected] Subject: bug#855: [devuan-dev] bug#855: Invalid processing of Parameter Expansion Reply-To: Mark Hindley <[email protected]>, [email protected] Resent-From: Mark Hindley <[email protected]> Resent-To: [email protected] Resent-CC: [email protected] X-Loop: [email protected] Resent-Date: Thu, 15 Aug 2024 06:44:01 +0000 Resent-Message-ID: <[email protected]> Resent-Sender: [email protected] X-Devuan-PR-Message: followup 855 X-Devuan-PR-Package: bash X-Devuan-PR-Keywords: upstream References: <[email protected]> <[email protected]> Received: via spool by [email protected] id=B855.172370413113516 (code B ref 855); Thu, 15 Aug 2024 06:44:01 +0000 Received: (at 855) by bugs.devuan.org; 15 Aug 2024 06:42:11 +0000 Delivered-To: [email protected] 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:42:11 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id zTRsCBOjvWbBJQAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Thu, 15 Aug 2024 06:41:23 +0000 Received: by email.devuan.org (Postfix, from userid 109) id D3F9E403; Thu, 15 Aug 2024 06:41:22 +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; [email protected]; 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 C17FA20A for <[email protected]>; Thu, 15 Aug 2024 06:41:21 +0000 (UTC) Received: from hindley.org.uk (apollo.hindleynet [192.168.1.3]) by mx.hindley.org.uk (Postfix) with SMTP id 3AF20C9; Thu, 15 Aug 2024 07:41:20 +0100 (BST) Received: (nullmailer pid 19170 invoked by uid 1000); Thu, 15 Aug 2024 06:41:19 -0000 Date: Thu, 15 Aug 2024 07:41:19 +0100 From: Mark Hindley <[email protected]> To: murzik <[email protected]>, [email protected] Message-ID: <[email protected]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <[email protected]> Control: merge -1 856 Murzik, On Thu, Aug 15, 2024 at 05:24:40PM +1100, murzik wrote: > Package: bash > X-Debbugs-Cc: [email protected] > 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
Received: (at 855) by bugs.devuan.org; 15 Aug 2024 06:42:11 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] 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:42:11 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id zTRsCBOjvWbBJQAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Thu, 15 Aug 2024 06:41:23 +0000 Received: by email.devuan.org (Postfix, from userid 109) id D3F9E403; Thu, 15 Aug 2024 06:41:22 +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; [email protected]; 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 C17FA20A for <[email protected]>; Thu, 15 Aug 2024 06:41:21 +0000 (UTC) Received: from hindley.org.uk (apollo.hindleynet [192.168.1.3]) by mx.hindley.org.uk (Postfix) with SMTP id 3AF20C9; Thu, 15 Aug 2024 07:41:20 +0100 (BST) Received: (nullmailer pid 19170 invoked by uid 1000); Thu, 15 Aug 2024 06:41:19 -0000 Date: Thu, 15 Aug 2024 07:41:19 +0100 From: Mark Hindley <[email protected]> To: murzik <[email protected]>, [email protected] Subject: Re: [devuan-dev] bug#855: Invalid processing of Parameter Expansion Message-ID: <[email protected]> References: <[email protected]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <[email protected]> X-Debbugs-No-Ack: No Thanks Control: merge -1 856 Murzik, On Thu, Aug 15, 2024 at 05:24:40PM +1100, murzik wrote: > Package: bash > X-Debbugs-Cc: [email protected] > 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
MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: Mark Hindley <[email protected]> Subject: bug#855: marked as done (Invalid processing of Parameter Expansion) Message-ID: <[email protected]> References: <[email protected]> <[email protected]> X-Devuan-PR-Message: closed 855 X-Devuan-PR-Package: bash X-Devuan-PR-Keywords: upstream Reply-To: [email protected] Date: Thu, 15 Aug 2024 13:22:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1723728121-32760-0" This is a multi-part message in MIME format... ------------=_1723728121-32760-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your message dated Thu, 15 Aug 2024 14:19:54 +0100 with message-id <[email protected]> and subject line Re: [devuan-dev] bug#855: bug#855: Invalid processing of P= arameter 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 [email protected] immediately.) --=20 855: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D855 Devuan Bug Tracking System Contact [email protected] with problems ------------=_1723728121-32760-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.devuan.org; 15 Aug 2024 06:25:36 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] 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 <[email protected]>) for <[email protected]>; 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 [email protected] 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; [email protected]; 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 <[email protected]>; Thu, 15 Aug 2024 06:24:13 +0000 (UTC) Received: by mail-lj1-x242.google.com with SMTP id 38308e7fff4ca-2ef2cce8be8so6676251fa.1 for <[email protected]>; 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 <[email protected]> (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 <[email protected]> Subject: Invalid processing of Parameter Expansion To: [email protected] Message-Id: <[email protected]> X-Mailer: geary/43.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-jcJTMusiG4kpEaQX6Uyk" --=-jcJTMusiG4kpEaQX6Uyk Content-Type: text/plain; charset=us-ascii; format=flowed Package: bash X-Debbugs-Cc: [email protected] 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 --=-jcJTMusiG4kpEaQX6Uyk Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable <div id=3D"geary-body" dir=3D"auto"><div>Package: bash</div><div>X-Debbugs-= Cc: [email protected]</div><div>Version: 5.2.15-2+b7</div><div>Severit= y: normal</div><div>Tags: upstream</div><div><br></div><div>Dear Maintainer= ,</div><div>When executing:<br></div><div>$ Var=3D'Example1 $(Example2)'</d= iv><div>$ echo "${Var#*'$('}"</div><div><br></div><div>I see an error:</div= ><div>bash: command substitution: line 6: unexpected EOF while looking for = matching `''</div><div><br></div><div>instend of the expected result of cut= ting off part of the text.</div><div>dash and busybox ash work as excepted:= </div><div>$ echo "${Var#*'$('}"</div><div>Example2)</div><div><br></div><d= iv><br></div><div>-- System Information:</div><div>Distributor ID: Devuan</= div><div>Description: Devuan GNU/Linux 5 (daedalus)</div><div>Release: 5</d= iv><div>Codename: daedalus</div><div>Architecture: x86_64</div><div><br></d= iv><div>Kernel: Linux 6.1.0-23-amd64 (SMP w/6 CPU threads; PREEMPT)</div><d= iv>Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE</div><div>Locale: LANG= =3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-8), LANGUAGE not set<= /div><div>Shell: /bin/sh linked to /bin/dash</div><div>Init: OpenRC (via /r= un/openrc), PID 1: openrc-init</div><div><br></div><div>Versions of package= s bash depends on:</div><div>ii base-files 12.4devuan3</div><div>ii deb= ianutils 5.7-0.5~deb12u1</div><div>ii libc6 2.36-9+deb12u7</div><d= iv>ii libtinfo6 6.4-4</div><div><br></div><div>Versions of packages bas= h recommends:</div><div>ii bash-completion 1:2.11-6</div><div><br></div><= div>Versions of packages bash suggests:</div><div>pn bash-doc <none>= ;</div><div><br></div><div>-- Configuration Files:</div><div>/etc/bash.bash= rc [Errno 1] Operation not permitted: '/etc/bash.bashrc'</div><div>/etc/ske= l/.bash_logout [Errno 1] Operation not permitted: '/etc/skel/.bash_logout'<= /div><div>/etc/skel/.bashrc [Errno 1] Operation not permitted: '/etc/skel/.= bashrc'</div><div>/etc/skel/.profile [Errno 1] Operation not permitted: '/e= tc/skel/.profile'</div><div><br></div><div>-- no debconf information</div><= div><br></div></div> --=-jcJTMusiG4kpEaQX6Uyk-- ------------=_1723728121-32760-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 855-done) by bugs.devuan.org; 15 Aug 2024 13:21:05 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] 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 <[email protected]>) for <[email protected]>; 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; [email protected]; 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 <[email protected]>; 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 <[email protected]> To: g4sra <[email protected]> Cc: [email protected] Subject: Re: [devuan-dev] bug#855: bug#855: Invalid processing of Parameter Expansion Message-ID: <[email protected]> References: <[email protected]> <[email protected]> <[email protected]> <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 ------------=_1723728121-32760-0--
MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: murzik <[email protected]> Subject: bug#855 closed by Mark Hindley <[email protected]> (Re: [devuan-dev] bug#855: bug#855: Invalid processing of Parameter Expansion) Message-ID: <[email protected]> References: <[email protected]> <[email protected]> X-Devuan-PR-Message: they-closed 855 X-Devuan-PR-Package: bash X-Devuan-PR-Keywords: upstream Reply-To: [email protected] Date: Thu, 15 Aug 2024 13:22:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1723728122-32760-1" This is a multi-part message in MIME format... ------------=_1723728122-32760-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the bash package: #855: Invalid processing of Parameter Expansion It has been closed by Mark Hindley <[email protected]>. 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@hin= dley.org.uk> by replying to this email. --=20 855: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D855 Devuan Bug Tracking System Contact [email protected] with problems ------------=_1723728122-32760-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 855-done) by bugs.devuan.org; 15 Aug 2024 13:21:05 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] 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 <[email protected]>) for <[email protected]>; 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; [email protected]; 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 <[email protected]>; 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 <[email protected]> To: g4sra <[email protected]> Cc: [email protected] Subject: Re: [devuan-dev] bug#855: bug#855: Invalid processing of Parameter Expansion Message-ID: <[email protected]> References: <[email protected]> <[email protected]> <[email protected]> <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 ------------=_1723728122-32760-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.devuan.org; 15 Aug 2024 06:25:36 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] 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 <[email protected]>) for <[email protected]>; 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 [email protected] 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; [email protected]; 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 <[email protected]>; Thu, 15 Aug 2024 06:24:13 +0000 (UTC) Received: by mail-lj1-x242.google.com with SMTP id 38308e7fff4ca-2ef2cce8be8so6676251fa.1 for <[email protected]>; 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 <[email protected]> (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 <[email protected]> Subject: Invalid processing of Parameter Expansion To: [email protected] Message-Id: <[email protected]> X-Mailer: geary/43.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-jcJTMusiG4kpEaQX6Uyk" --=-jcJTMusiG4kpEaQX6Uyk Content-Type: text/plain; charset=us-ascii; format=flowed Package: bash X-Debbugs-Cc: [email protected] 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 --=-jcJTMusiG4kpEaQX6Uyk Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable <div id=3D"geary-body" dir=3D"auto"><div>Package: bash</div><div>X-Debbugs-= Cc: [email protected]</div><div>Version: 5.2.15-2+b7</div><div>Severit= y: normal</div><div>Tags: upstream</div><div><br></div><div>Dear Maintainer= ,</div><div>When executing:<br></div><div>$ Var=3D'Example1 $(Example2)'</d= iv><div>$ echo "${Var#*'$('}"</div><div><br></div><div>I see an error:</div= ><div>bash: command substitution: line 6: unexpected EOF while looking for = matching `''</div><div><br></div><div>instend of the expected result of cut= ting off part of the text.</div><div>dash and busybox ash work as excepted:= </div><div>$ echo "${Var#*'$('}"</div><div>Example2)</div><div><br></div><d= iv><br></div><div>-- System Information:</div><div>Distributor ID: Devuan</= div><div>Description: Devuan GNU/Linux 5 (daedalus)</div><div>Release: 5</d= iv><div>Codename: daedalus</div><div>Architecture: x86_64</div><div><br></d= iv><div>Kernel: Linux 6.1.0-23-amd64 (SMP w/6 CPU threads; PREEMPT)</div><d= iv>Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE</div><div>Locale: LANG= =3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-8), LANGUAGE not set<= /div><div>Shell: /bin/sh linked to /bin/dash</div><div>Init: OpenRC (via /r= un/openrc), PID 1: openrc-init</div><div><br></div><div>Versions of package= s bash depends on:</div><div>ii base-files 12.4devuan3</div><div>ii deb= ianutils 5.7-0.5~deb12u1</div><div>ii libc6 2.36-9+deb12u7</div><d= iv>ii libtinfo6 6.4-4</div><div><br></div><div>Versions of packages bas= h recommends:</div><div>ii bash-completion 1:2.11-6</div><div><br></div><= div>Versions of packages bash suggests:</div><div>pn bash-doc <none>= ;</div><div><br></div><div>-- Configuration Files:</div><div>/etc/bash.bash= rc [Errno 1] Operation not permitted: '/etc/bash.bashrc'</div><div>/etc/ske= l/.bash_logout [Errno 1] Operation not permitted: '/etc/skel/.bash_logout'<= /div><div>/etc/skel/.bashrc [Errno 1] Operation not permitted: '/etc/skel/.= bashrc'</div><div>/etc/skel/.profile [Errno 1] Operation not permitted: '/e= tc/skel/.profile'</div><div><br></div><div>-- no debconf information</div><= div><br></div></div> --=-jcJTMusiG4kpEaQX6Uyk-- ------------=_1723728122-32760-1--
MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: Mark Hindley <[email protected]> Subject: bug#856: marked as done (bash: Invalid processing of Parameter Expansion) Message-ID: <[email protected]> References: <[email protected]> <[email protected]> X-Devuan-PR-Message: closed 856 X-Devuan-PR-Package: bash X-Devuan-PR-Keywords: upstream Reply-To: [email protected] Date: Thu, 15 Aug 2024 13:22:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1723728123-32760-2" This is a multi-part message in MIME format... ------------=_1723728123-32760-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your message dated Thu, 15 Aug 2024 14:19:54 +0100 with message-id <[email protected]> and subject line Re: [devuan-dev] bug#855: bug#855: Invalid processing of P= arameter Expansion has caused the Devuan bug report #855, regarding bash: 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 [email protected] immediately.) --=20 855: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D855 Devuan Bug Tracking System Contact [email protected] with problems ------------=_1723728123-32760-2 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.devuan.org; 15 Aug 2024 06:31:38 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] 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:31:38 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id gFGBJZKgvWaEJAAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Thu, 15 Aug 2024 06:30:42 +0000 Received: by email.devuan.org (Postfix, from userid 109) id 81D20403; Thu, 15 Aug 2024 06:30:42 +0000 (UTC) Authentication-Results: email.devuan.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com [email protected] header.a=rsa-sha256 header.s=20230601 header.b=UOEaq1Mq; 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::442; helo=mail-wr1-x442.google.com; [email protected]; receiver=<UNKNOWN> Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by email.devuan.org (Postfix) with ESMTPS id AAD4620A for <[email protected]>; Thu, 15 Aug 2024 06:30:41 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id ffacd0b85a97d-368712acb8dso289144f8f.2 for <[email protected]>; Wed, 14 Aug 2024 23:30:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723703440; x=1724308240; darn=bugs.devuan.org; h=mime-version:message-id:to:subject:from:date:from:to:cc:subject :date:message-id:reply-to; bh=uUGYvmbb/1ojaQjGLzjnDQkgPCuL4A5Dxoa2kFLCxv8=; b=UOEaq1MqCNhtU7pjWnMtKmjkhruaTX0sdToutJ2374c/pQnE+gkK5QZOffWN5jS2bm 0EmV3LaSgoZjCRxKVmS81Rbv4nyW4UMj9ytmMB4pWBHCP6XVxWTW8QAR9DsZievJO/jL hOrHfwtrLcqOvLV60IfK8fMc/gBiGFnzrlVPUi3l4NZV+7jpnzqB5lP5rCSgTaJGFt7/ lQuFw0K8NTXnhVLkXw6AwSJf3fN/wwED7+yNDNL77oKeoqWtKlKTJIZqN23XLgypYsEH +uQG+D+tiFRGXNX3aLR63sJH/0IAI5e2/He4J0wXfcFu5PV9bee9N3/f30eu7SvU0RIc 6vRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723703440; x=1724308240; h=mime-version:message-id:to:subject:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=uUGYvmbb/1ojaQjGLzjnDQkgPCuL4A5Dxoa2kFLCxv8=; b=A15XjFHuFD6XssgqFwQIz+8t8yYP7FNBA18HpED9HeHimMq9pWWAaaB3XhoKVU9Gp5 gQTsDfVhala/lIFgx6lHqidkV17ngi/PiMhYP7KwdNWHeWkGXi6luGL3JmcbIC/ln4Gq rgGCOysI2lQRV3euWb+h86sRiTXdEikSeDypBicIFP2S+BlMhuRpMoLXx+hcrZuTTplV BVTCHm4Q7VUgGdLH9zGq8QhrMMZe4UuNsIsQ75bNSjDxmANpZ+KJhPp9NIiLZvN80Ugq NxcJxzd+qZMzv+wIfgWKgi7ud2wyZ7Z1qn4RTQO6qpF6lj2bmR9XT2kAzzBFJ6aCHjTc k7hQ== X-Gm-Message-State: AOJu0YzocpcHrqcWs8ETO4Z9q6mbWrEf8YsMDnXak4LGwiBMZCPN3sGc 5XdtNVF4CACUZK9oCulGqD/MnENTAn9gPDbFAQXLrfcNphwTiWlFoKgTl1pg X-Google-Smtp-Source: AGHT+IGtiVPJc6h7m4m/y8s8329RyUQ02PeaTRnccRuxw7eGwejcL7VwoA3rnv4oyd5+QlnVoPnYaA== X-Received: by 2002:adf:e301:0:b0:367:434f:ca9a with SMTP id ffacd0b85a97d-37177653909mr3045991f8f.0.1723703439877; Wed, 14 Aug 2024 23:30:39 -0700 (PDT) Received: from [192.168.0.70] ([188.113.129.153]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37189839f51sm715309f8f.8.2024.08.14.23.30.38 for <[email protected]> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 23:30:39 -0700 (PDT) Date: Thu, 15 Aug 2024 17:31:08 +1100 From: murzik <[email protected]> Subject: bash: Invalid processing of Parameter Expansion To: [email protected] Message-Id: <[email protected]> X-Mailer: geary/43.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-afnyE7LzS1ZU3p/nsSG0" --=-afnyE7LzS1ZU3p/nsSG0 Content-Type: text/plain; charset=us-ascii; format=flowed Package: bash X-Debbugs-Cc: [email protected] 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 --=-afnyE7LzS1ZU3p/nsSG0 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable <div id=3D"geary-body" dir=3D"auto"><div>Package: bash</div><div>X-Debbugs-= Cc: [email protected]</div><div>Version: 5.2.15-2+b7</div><div>Severit= y: normal</div><div>Tags: upstream</div><div><br></div><div>Dear Maintainer= ,</div><div>When executing:</div><div>$ Var=3D'Example1 $(Example2)'</div><= div>$ echo "${Var#*'$('}"</div><div><br></div><div>I see an error:</div><di= v>bash: command substitution: line 6: unexpected EOF while looking for matc= hing `''</div><div><br></div><div>instend of the expected result of cutting= off part of the text.</div><div>dash and busybox ash work as excepted:</di= v><div>$ echo "${Var#*'$('}"</div><div>Example2)</div><div><br></div><div><= br></div><div>-- System Information:</div><div>Distributor ID: Devuan</div>= <div>Description: Devuan GNU/Linux 5 (daedalus)</div><div>Release: 5</div><= div>Codename: daedalus</div><div>Architecture: x86_64</div><div><br></div><= div>Kernel: Linux 6.1.0-23-amd64 (SMP w/6 CPU threads; PREEMPT)</div><div>K= ernel taint flags: TAINT_WARN, TAINT_OOT_MODULE</div><div>Locale: LANG=3Den= _US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-8), LANGUAGE not set</div>= <div>Shell: /bin/sh linked to /bin/dash</div><div>Init: OpenRC (via /run/op= enrc), PID 1: openrc-init</div><div><br></div><div>Versions of packages bas= h depends on:</div><div>ii base-files 12.4devuan3</div><div>ii debianut= ils 5.7-0.5~deb12u1</div><div>ii libc6 2.36-9+deb12u7</div><div>ii= libtinfo6 6.4-4</div><div><br></div><div>Versions of packages bash rec= ommends:</div><div>ii bash-completion 1:2.11-6</div><div><br></div><div>V= ersions of packages bash suggests:</div><div>pn bash-doc <none></di= v><div><br></div><div>-- Configuration Files:</div><div>/etc/bash.bashrc [E= rrno 1] Operation not permitted: '/etc/bash.bashrc'</div><div>/etc/skel/.ba= sh_logout [Errno 1] Operation not permitted: '/etc/skel/.bash_logout'</div>= <div>/etc/skel/.bashrc [Errno 1] Operation not permitted: '/etc/skel/.bashr= c'</div><div>/etc/skel/.profile [Errno 1] Operation not permitted: '/etc/sk= el/.profile'</div><div><br></div><div>-- no debconf information</div><div><= br></div></div> --=-afnyE7LzS1ZU3p/nsSG0-- ------------=_1723728123-32760-2 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 855-done) by bugs.devuan.org; 15 Aug 2024 13:21:05 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] 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 <[email protected]>) for <[email protected]>; 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; [email protected]; 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 <[email protected]>; 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 <[email protected]> To: g4sra <[email protected]> Cc: [email protected] Subject: Re: [devuan-dev] bug#855: bug#855: Invalid processing of Parameter Expansion Message-ID: <[email protected]> References: <[email protected]> <[email protected]> <[email protected]> <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 ------------=_1723728123-32760-2--
MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: murzik <[email protected]> Subject: bug#856 closed by Mark Hindley <[email protected]> (Re: [devuan-dev] bug#855: bug#855: Invalid processing of Parameter Expansion) Message-ID: <[email protected]> References: <[email protected]> <[email protected]> X-Devuan-PR-Message: they-closed 856 X-Devuan-PR-Package: bash X-Devuan-PR-Keywords: upstream Reply-To: [email protected] Date: Thu, 15 Aug 2024 13:22:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1723728124-32760-3" This is a multi-part message in MIME format... ------------=_1723728124-32760-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 <[email protected]>. 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@hin= dley.org.uk> by replying to this email. --=20 855: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D855 Devuan Bug Tracking System Contact [email protected] with problems ------------=_1723728124-32760-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 855-done) by bugs.devuan.org; 15 Aug 2024 13:21:05 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] 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 <[email protected]>) for <[email protected]>; 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; [email protected]; 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 <[email protected]>; 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 <[email protected]> To: g4sra <[email protected]> Cc: [email protected] Subject: Re: [devuan-dev] bug#855: bug#855: Invalid processing of Parameter Expansion Message-ID: <[email protected]> References: <[email protected]> <[email protected]> <[email protected]> <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 ------------=_1723728124-32760-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.devuan.org; 15 Aug 2024 06:31:38 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] 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:31:38 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id gFGBJZKgvWaEJAAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Thu, 15 Aug 2024 06:30:42 +0000 Received: by email.devuan.org (Postfix, from userid 109) id 81D20403; Thu, 15 Aug 2024 06:30:42 +0000 (UTC) Authentication-Results: email.devuan.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com [email protected] header.a=rsa-sha256 header.s=20230601 header.b=UOEaq1Mq; 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::442; helo=mail-wr1-x442.google.com; [email protected]; receiver=<UNKNOWN> Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by email.devuan.org (Postfix) with ESMTPS id AAD4620A for <[email protected]>; Thu, 15 Aug 2024 06:30:41 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id ffacd0b85a97d-368712acb8dso289144f8f.2 for <[email protected]>; Wed, 14 Aug 2024 23:30:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723703440; x=1724308240; darn=bugs.devuan.org; h=mime-version:message-id:to:subject:from:date:from:to:cc:subject :date:message-id:reply-to; bh=uUGYvmbb/1ojaQjGLzjnDQkgPCuL4A5Dxoa2kFLCxv8=; b=UOEaq1MqCNhtU7pjWnMtKmjkhruaTX0sdToutJ2374c/pQnE+gkK5QZOffWN5jS2bm 0EmV3LaSgoZjCRxKVmS81Rbv4nyW4UMj9ytmMB4pWBHCP6XVxWTW8QAR9DsZievJO/jL hOrHfwtrLcqOvLV60IfK8fMc/gBiGFnzrlVPUi3l4NZV+7jpnzqB5lP5rCSgTaJGFt7/ lQuFw0K8NTXnhVLkXw6AwSJf3fN/wwED7+yNDNL77oKeoqWtKlKTJIZqN23XLgypYsEH +uQG+D+tiFRGXNX3aLR63sJH/0IAI5e2/He4J0wXfcFu5PV9bee9N3/f30eu7SvU0RIc 6vRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723703440; x=1724308240; h=mime-version:message-id:to:subject:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=uUGYvmbb/1ojaQjGLzjnDQkgPCuL4A5Dxoa2kFLCxv8=; b=A15XjFHuFD6XssgqFwQIz+8t8yYP7FNBA18HpED9HeHimMq9pWWAaaB3XhoKVU9Gp5 gQTsDfVhala/lIFgx6lHqidkV17ngi/PiMhYP7KwdNWHeWkGXi6luGL3JmcbIC/ln4Gq rgGCOysI2lQRV3euWb+h86sRiTXdEikSeDypBicIFP2S+BlMhuRpMoLXx+hcrZuTTplV BVTCHm4Q7VUgGdLH9zGq8QhrMMZe4UuNsIsQ75bNSjDxmANpZ+KJhPp9NIiLZvN80Ugq NxcJxzd+qZMzv+wIfgWKgi7ud2wyZ7Z1qn4RTQO6qpF6lj2bmR9XT2kAzzBFJ6aCHjTc k7hQ== X-Gm-Message-State: AOJu0YzocpcHrqcWs8ETO4Z9q6mbWrEf8YsMDnXak4LGwiBMZCPN3sGc 5XdtNVF4CACUZK9oCulGqD/MnENTAn9gPDbFAQXLrfcNphwTiWlFoKgTl1pg X-Google-Smtp-Source: AGHT+IGtiVPJc6h7m4m/y8s8329RyUQ02PeaTRnccRuxw7eGwejcL7VwoA3rnv4oyd5+QlnVoPnYaA== X-Received: by 2002:adf:e301:0:b0:367:434f:ca9a with SMTP id ffacd0b85a97d-37177653909mr3045991f8f.0.1723703439877; Wed, 14 Aug 2024 23:30:39 -0700 (PDT) Received: from [192.168.0.70] ([188.113.129.153]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37189839f51sm715309f8f.8.2024.08.14.23.30.38 for <[email protected]> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 23:30:39 -0700 (PDT) Date: Thu, 15 Aug 2024 17:31:08 +1100 From: murzik <[email protected]> Subject: bash: Invalid processing of Parameter Expansion To: [email protected] Message-Id: <[email protected]> X-Mailer: geary/43.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-afnyE7LzS1ZU3p/nsSG0" --=-afnyE7LzS1ZU3p/nsSG0 Content-Type: text/plain; charset=us-ascii; format=flowed Package: bash X-Debbugs-Cc: [email protected] 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 --=-afnyE7LzS1ZU3p/nsSG0 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable <div id=3D"geary-body" dir=3D"auto"><div>Package: bash</div><div>X-Debbugs-= Cc: [email protected]</div><div>Version: 5.2.15-2+b7</div><div>Severit= y: normal</div><div>Tags: upstream</div><div><br></div><div>Dear Maintainer= ,</div><div>When executing:</div><div>$ Var=3D'Example1 $(Example2)'</div><= div>$ echo "${Var#*'$('}"</div><div><br></div><div>I see an error:</div><di= v>bash: command substitution: line 6: unexpected EOF while looking for matc= hing `''</div><div><br></div><div>instend of the expected result of cutting= off part of the text.</div><div>dash and busybox ash work as excepted:</di= v><div>$ echo "${Var#*'$('}"</div><div>Example2)</div><div><br></div><div><= br></div><div>-- System Information:</div><div>Distributor ID: Devuan</div>= <div>Description: Devuan GNU/Linux 5 (daedalus)</div><div>Release: 5</div><= div>Codename: daedalus</div><div>Architecture: x86_64</div><div><br></div><= div>Kernel: Linux 6.1.0-23-amd64 (SMP w/6 CPU threads; PREEMPT)</div><div>K= ernel taint flags: TAINT_WARN, TAINT_OOT_MODULE</div><div>Locale: LANG=3Den= _US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-8), LANGUAGE not set</div>= <div>Shell: /bin/sh linked to /bin/dash</div><div>Init: OpenRC (via /run/op= enrc), PID 1: openrc-init</div><div><br></div><div>Versions of packages bas= h depends on:</div><div>ii base-files 12.4devuan3</div><div>ii debianut= ils 5.7-0.5~deb12u1</div><div>ii libc6 2.36-9+deb12u7</div><div>ii= libtinfo6 6.4-4</div><div><br></div><div>Versions of packages bash rec= ommends:</div><div>ii bash-completion 1:2.11-6</div><div><br></div><div>V= ersions of packages bash suggests:</div><div>pn bash-doc <none></di= v><div><br></div><div>-- Configuration Files:</div><div>/etc/bash.bashrc [E= rrno 1] Operation not permitted: '/etc/bash.bashrc'</div><div>/etc/skel/.ba= sh_logout [Errno 1] Operation not permitted: '/etc/skel/.bash_logout'</div>= <div>/etc/skel/.bashrc [Errno 1] Operation not permitted: '/etc/skel/.bashr= c'</div><div>/etc/skel/.profile [Errno 1] Operation not permitted: '/etc/sk= el/.profile'</div><div><br></div><div>-- no debconf information</div><div><= br></div></div> --=-afnyE7LzS1ZU3p/nsSG0-- ------------=_1723728124-32760-3--
Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.
Devuan Bugs Owner <[email protected]>.
Last modified:
Sat, 22 Feb 2025 04:39:01 UTC