:: [devuan-dev] bug#856: bash: Invalid…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: murzik
Ημερομηνία:  
Προς: submit
Αντικείμενο: [devuan-dev] bug#856: bash: Invalid processing of Parameter Expansion
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