pkgx & Scripting
pkgx
is a “Universal” Interpreter
pkgx
is a “Universal” InterpreterWe read the shebang and install the interpreter before executing the script. If there is no shebang we use the default interpreter for the file extension.
shebangs
You can use pkgx
as the shebang for your scripts:
Using env
to invoke pkgx
is typical for tools that have no POSIX location.
The -S
parameter is required to pass multiple arguments.
Including Additional pkgs
Scripts are the glue that allows open source to be composed into powerful new tools. With our +pkg
syntax you make anything in open source available to your script.
Shell Scripting
Robustness requires precisely specifying your environment:
Last updated