aboutsummaryrefslogtreecommitdiff
path: root/bin/ax.sh
Commit message (Collapse)AuthorAgeFilesLines
* Two-space sentences in shell commentsTom Ryder2018-12-271-1/+1
|
* Make newline explicit for ax(1df)Tom Ryder2018-01-111-2/+2
| | | | | This makes it a little more flexible, if you genuinely don't want a newline in the output.
* Make first ax(1df) arg safer, warn on second argTom Ryder2018-01-111-9/+4
| | | | | | | | | | | | | The format in the first argument does not need to be evaluated, so it can be passed in a simple awk variable. The second argument is evaluated, by design, so code injection is trivial. It's probably a good idea to warn users about this explicitly. $ ax '0);system("cat /etc/passwd")' Make the whole thing a little terser, too, with the awk program construction, variable assignment, and invocation all on one line.
* Apply runtime shebanging to POSIX shellTom Ryder2017-04-051-0/+27