aboutsummaryrefslogtreecommitdiff
path: root/ex
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-01-11 19:18:05 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-01-11 19:18:05 +1300
commit47cf35e2342f32149ba608851c4a514758447944 (patch)
tree4520d382ff417cf94a2f1dbadc5a0dd630348d38 /ex
parentMerge branch 'feature/vim-doc-fix' into develop (diff)
downloaddotfiles-47cf35e2342f32149ba608851c4a514758447944.tar.gz
dotfiles-47cf35e2342f32149ba608851c4a514758447944.zip
Make first ax(1df) arg safer, warn on second arg
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.
Diffstat (limited to 'ex')
0 files changed, 0 insertions, 0 deletions