Usage: unpath UNCMD CMD
unpath runs CMD with a modified PATH that does not contain UNCMD.
Arguments:
UNCMD the command to hide from PATH
CMD the command to run with the modified PATH
Examples:
unpath cat ./script script-arg
unpath cat CMD subcmd-arg
unpath cat unpath env CMD
FaviconFactory uses unpath to test selectively the Vips or ImageMagick integration.
You can install unpath with Go:
go install github.com/3v0k4/unpath
Or fetch the executable from GitHub:
# PLATFORM {linux,darwin}
# ARCHITECTURE {amd64,arm64}
curl --location https://github.com/3v0k4/unpath/releases/download/v0.1.0/unpath-PLATFORM-ARCH --output unpath
chmod +x unpath
./unpath
unpath cat ./script script-arg
unpath cat command command-arg
To show all the options:
unpath
Unpath is dependency-free (it only uses the Go standard library), so there are no prerequisites.
go test
To release a new version add a tag and push:
git tag vX.Y.Z
git push --tags
Bug reports and pull requests are welcome on GitHub.
The module is available as open source under the terms of the MIT License.