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: Oğuz İsmail Uysal
Subject: Re: unset does not remove functions like a[b] unless -f is specified
Date: Sat, 4 Feb 2023 14:43:03 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

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.



reply via email to

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