Your message dated Thu, 21 Mar 2024 02:31:01 +0100
with message-id <[email protected]>
and subject line Re: Bug#387384: bash: cannot declare -f
function-name-with-hyphens
has caused the Debian Bug report #387384,
regarding bash: cannot declare -f function-name-with-hyphens
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.)
--
387384: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387384
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bash
Version: 3.1-5
Severity: normal
Declaring and using functions with dashes in their names works,
but they cannot be listed with 'declare -f':
$ foo-bar () { echo foo bar; }
$ foo-bar
foo bar
$ declare -f foo-bar
bash: declare: `foo-bar': not a valid identifier
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages bash depends on:
ii base-files 3.1.16 Debian base system miscellaneous f
ii debianutils 2.17.1 Miscellaneous utilities specific t
ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries
ii libncurses5 5.5-3 Shared libraries for terminal hand
bash recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 5.0-6
On Thu, 14 Sep 2006 01:50:19 +0100 Ian Beckwith <[email protected]>
wrote:
Package: bash
Version: 3.1-5
Severity: normal
Declaring and using functions with dashes in their names works,
but they cannot be listed with 'declare -f':
$ foo-bar () { echo foo bar; }
$ foo-bar
foo bar
$ declare -f foo-bar
bash: declare: `foo-bar': not a valid identifier
This issue does not seem to affect version 5.0-6 and later of bash.
$ foo-bar () { echo foo bar; }
$ foo-bar
foo bar
$ declare -f foo-bar
foo-bar ()
{
echo foo bar
}
Please reopen this bug if you can still replicate this issue.
Regards,
--
Gioele Barabucci
--- End Message ---