On 2/3/23 1:17 AM, Koichi Murase wrote:
It would break all my scripts, which use slashes for the
pseudo-namespacing, so I'm personally unhappy if the function names
would be restricted at this time. As far as I try the oldest Bash
version 1.14.7 available at < https://ftp.gnu.org/gnu/bash/ > (I
haven't applied reverse patches of 1.14.*), it already supports a
slash in function names outside the `-o posix' mode:
$ bash-1.14 -c 'func/name() { echo a; }; func/name'
a
so the support for the function names has a history of mostly thirty years.
Bash has allowed slashes in function names since the beginning: 1988.
I can see a case for posix mode disallowing execution of functions whose
names contain a slash, but default mode has always allowed it.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/