Re: command_not_found_handle not run when PATH is empty

2023-03-09 Thread Moshe Looks
Thank you this is very illuminating and makes it clear that my naive one-line fix would be inappropriate. Given the current state of affairs there is really no good reason for PATH to ever be unset or set to empty vs. explicitly set to '.', right? So might be worth spelling out in the docs that thi

Re: command_not_found_handle not run when PATH is empty

2023-03-09 Thread Robert Elz
Date:Thu, 09 Mar 2023 09:26:18 +0100 From:Andreas Schwab Message-ID: | But an unset PATH is *not* the same as PATH=. That might be true, but POSIX says: If PATH is unset or is set to null, or if a path prefix in PATH contains a character ('%'), t

Re: command_not_found_handle not run when PATH is empty

2023-03-09 Thread Andreas Schwab
On Mär 08 2023, Grisha Levit wrote: > I think it might make sense to change code that looks at the value of > PATH to explicitly treat an empty value as `.' so that all such > behavior is consistent. But an unset PATH is *not* the same as PATH=. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG