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

Re: [FEATURE][PATCH] Complete local executables with ./ prefix, if prefix-needed is false



On Tue, Dec 7, 2021 at 4:23 PM Aaron Schrab <aaron@xxxxxxxxxx> wrote:

The already existing uses of `prefix-needed` are ones that I don't think
setting it to false would cause any serious problems. But for this I
think it's fairly dangerous

Hm.  I haven't applied the patch to see what effect it has, but it appears it would cause the "./" to be prefixed onto the command word?  If so, there's visible feedback; if not, the danger would be of invoking a command that's in $path instead of the intended local executable.

So I'm not strongly concerned about danger; what is the behavior you'd find troubling?

My question would be whether this needs any further changes to interoperate with prefix-hidden.


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