mkx 3.0.0
USAGE: mkx [-bhsvx] [-i <interpreter>] [-t <template>] <scriptfile>
Make new shell script executable file from template.
OPTIONS:
-b Only write a bare script with only the shebang line, without template.
If output file already exists, make it executable.
-h Show this help screen.
-i Specify interpreter in shebang line. Implies -b.
-s Use /bin/sh as interpreter. Implies -b.
-t Specify template file. If not specified, uses 'default'.
-v Show script name and version number.
git clone https://github.com/remino/mkx
cd mkx
./mkx
brew install remino/remino/mkx
./mkx
As the name mksh is more commonly associated with the MirBSD Korn Shell, this repo has been renamed from mksh to mkx. The same goes for the namesake script within.
Invoking mksh
with mkx
used to be the equivalent of mksh -b
or mksh -i <interpreter>
. But the with this name change, mkx
was now made to work like mksh
.
Tests are written in Bats.
To run them, install Bats and run bats tests
in the project root directory.