4 ms·
Only if PATH includes ".", which is why they say not to do that (or use windows. I'm not sure if you can fix that there).
by singron 4y ago
Only if PATH includes ".", which is why they say not to do that (or use windows. I'm not sure if you can fix that there).
- colejohnson66 4y agoCMD includes the CWD in the PATH,[a] but PowerShell doesn’t; you’re forced to do the `./` (or `.\`) dance. However, if you tab complete a file name that’s not "dot slash" prefixed, it’ll add it for you. Not sure if sh and friends do that. [a]: Implicitly. Echoing the $PATH variable won’t include `.`, but you can execute as if it was
- thaumasiotes 4y agoEven if PATH includes the current directory, you'll be safe as long as it doesn't take priority over the regular bin directories.