On 2/4/23 12:23 PM, Koichi Murase wrote:
Changing the behavior related to the function names wouldn't make the
behavior of the shell entirely unspecified
I see, but that's not what you're suggesting. You're suggesting that how
command search and execution works be changed to allow functions that
contain slashes in their names to prevent command search, and shadow
filesystem entries including those of standard utilities.
The fact that bash and zsh already allow it doesn't mean it's a good
idea. And it's easier to make the overall behavior unspecified than
examine each shell and document this new behavior; preferable too
considering how little it benefits the user.