:: [devuan-dev] bug#855: marked as don…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Devuan bug Tracking System
Ημερομηνία:  
Προς: Mark Hindley
Αντικείμενο: [devuan-dev] bug#855: marked as done (Invalid processing of Parameter Expansion)
Your message dated Thu, 15 Aug 2024 14:19:54 +0100
with message-id <Zr4Aes4_rdS0CiKR@???>
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@???
immediately.)


--
855: https://bugs.devuan.org/cgi/bugreport.cgi?bug=855
Devuan Bug Tracking System
Contact owner@??? with problems
Package: bash
X-Debbugs-Cc: lorietta2023@???
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


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