Path is a utility for working with paths
60 spyrja 16 4/27/2025, 12:27:50 AM gitlab.com ↗
A recent post here got me thinking about my own personal gripes with OS path handling offerings. So I've basically spent the passed couple of days working on a little project in an attempt to rectify the situation somewhat (in the spirit of cross-platform development). It should also work pretty well with existing tools. Let me know what you think, and feel free to open an issue or a pull-request if you have any problems getting it running it on your system. Enjoy!
Github link: https://github.com/SpyrjaGaldr/path
Fish, being a great shell, provides this via `path` command[0]
[0]: https://fishshell.com/docs/current/cmds/path.html
It's good for finding files fast, and piping the resulting file paths into other tools for further action / handling. It does what it claims to do and does it well. :)
Potential footgun to make a program rely on this to locate, say, a shared library (as in one of the examples), if there’s a possibility that someone has smuggled a malware’d version of it into, say, /tmp, since it defaults to searching the root directory.
I wonder if a safer default would be to start searches at the current directory rather than the root directory?
No comments yet