bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unset does not remove functions like a[b] unless -f is specified


From: Koichi Murase
Subject: Re: unset does not remove functions like a[b] unless -f is specified
Date: Sun, 5 Feb 2023 02:08:08 +0900

2023年2月4日(土) 23:58 Oğuz <oguzismailuysal@gmail.com>:
> 4 Şubat 2023 Cumartesi tarihinde Koichi Murase <myoga.murase@gmail.com> yazdı:
>>
> I understand. But I think both bash and zsh should change their behavior to 
> disallow the functions in question at least in posix mode, and the standard 
> shouldn't allow it, that's what I'm saying

Thanks, so that it the point that we do not agree with each other. I
just wouldn't like the Bash configuration that I maintain to be broken
by the incompatible change to the behavior unchanged from 1988. You
would like to change Bash and Zsh to behave in a more sensible way.
According to kre, the standard doesn't force shells to change their
historical behavior, but I'm not that extreme. As far as there are
sufficient reasons, and it does not break existing scripts, I think
it's anytime worth considering the change to the detailed behavior.

Maybe you think function names with slashes in any form shouldn't be
executable even if they can be defined, but another possibility would
be to only disallow the call of the function names of the specific
form `/*', `./*', and `../*'.

--
Koichi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]