In addition to the comments given by Scott and Dan, think seriously about what having "." in your path means. If it is first in your $PATH then any command you issue that may contain the name of a file in your cwd will always attempt to use that file and may not be the command you actually intend to use. It is never wise to use "." in your path. It is much better to use the practice of having command files in a bin directory and have that bin directory in your path ($HOME/bin, /usr/bin, /usr/sbin, /usr/local/bin, etc.) then only execute files that are not within the $PATH using either ./<command> for files in your cwd or /full/path/<command> for any other executable files not in the $PATH.
After all, if it is not in a location that is in the $PATH then it probably is a seldom used command. Jeff On Mon, Jul 28, 2025 at 8:37 AM Dan Smith via Users < [email protected]> wrote: > > True, for programs and scripts. My PATH has '.' as the first entry, so > it's implied. I guess Python has it's own paths, and clearly relies on the > extra versbosity. > > This has nothing at all to do with python or your PATH. Pip takes either a > package name (from the repository) or a *path* to a package file. If you > don't give it anything with a slash in it, it assumes you're giving it a > package name, which it can't find. As Scott said and the doc implies, the > './' is not just there to make you type more stuff. > > Also as Scott said, having '.' in your PATH has been a self-imposed attack > vector for *decades*. > > --Dan > _______________________________________________ > Users mailing list > [email protected] > https://lists.chirpmyradio.com/postorius/lists/users.lists.chirpmyradio.com > To unsubscribe, send an email to [email protected] > To report this email as off-topic, please email > [email protected] > List archives: > https://lists.chirpmyradio.com/hyperkitty/list/[email protected]/ > _______________________________________________ Users mailing list [email protected] https://lists.chirpmyradio.com/postorius/lists/users.lists.chirpmyradio.com To unsubscribe, send an email to [email protected] To report this email as off-topic, please email [email protected] List archives: https://lists.chirpmyradio.com/hyperkitty/list/[email protected]/
