Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Can't tell the difference in operation between PATH_SCRIPT and NO_PATH_SCRIPT



On Fri, Jan 26, 2024, at 1:25 AM, Lawrence Velázquez wrote:
> Those are two ways to enable PATH_SEARCH for a new zsh process,
> sure.  Bart listed some more.
>
> But "affecting future commands" is not really the way to look at
> it; the option is not that general.  PATH_SCRIPT affects one very
> specific behavior: whether or not ''zsh foo'' searches PATH for a
> script "foo" if ./foo doesn't exist.  It does not affect anything
> else, including PATH search *within* that script.
>
> Probably should have asked earlier, but:  What were you trying to
> achieve with PATH_SEARCH, exactly?

Sorry, it's late here.  Everywhere I have accidentally written
"PATH_SEARCH", I meant "PATH_SCRIPT".

-- 
vq




Messages sorted by: Reverse Date, Date, Thread, Author