Closed khuei closed 4 years ago
Problem is, command -v
looks at all commands while command which
only looks at executable commands, preventing edge cases such as aliasing one package manager name to another.
If there's a way without using which
to only get executable commands from command
lmk, but I think it's better to account for edge cases rather than reduce external commands.
Problem is, command -v looks at all commands while command which only looks at executable commands, preventing edge cases such as aliasing one package manager name to another.
Not an issue in scripts. Aliases don't carry over to scripts.
Fair enough. Since the branch you edited was old I just put the -v on the latest commit.
I'm sure that was completely unrelated to replying after 15 hours :)
Also update command -v didnt even work >:C
Use shell built-in
command -v
to eliminate the need forwhich
external command.