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

Re: Overriding "builtin"



On Mon, Aug 29, 2022 at 1:42 PM Zach Riggle <zachriggle@xxxxxxxxx> wrote:
>
> Since the environment is malicious, $PATH also cannot be trusted -- I thought "=" might be a way to guarantee that an executable at a specific absolute path does get executed instead of something else (alias, function, autoloadable, etc) but it doesn't work when specifying the full path.

You can always use relative paths.  E.g.

/../././../usr/bin/sudo
/usr/./bin/./sudo
etc.

it would be ... impractical ... to replace all possible combinations
of this with functions.




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