summaryrefslogtreecommitdiffstats
path: root/buf.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-01-28 06:28:06 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-01-28 06:28:06 -0800
commitfe6ef8b5e2810495d9ef4620be30806857351202 (patch)
tree21896ec89e8b1a86d26bd2443bdc16ff16d764cb /buf.c
parentd0d28ade066af5ae00a2ec00f428065c720a6b2d (diff)
downloadtxr-fe6ef8b5e2810495d9ef4620be30806857351202.tar.gz
txr-fe6ef8b5e2810495d9ef4620be30806857351202.tar.bz2
txr-fe6ef8b5e2810495d9ef4620be30806857351202.zip
command line: support -f in Hash Bang Null Hack.
* txr.c (txr_main): In processing the -f option, if there is already an input source, but its name exactly matches the argument of the -f option, then ignore the -f and its option intead of terminating with a diagnostic. This allows the user to use -f in the Null Hack to achieve the usual trick of allowing the script to take options passed through to the interpreter. * txr.1: Documented.
Diffstat (limited to 'buf.c')
0 files changed, 0 insertions, 0 deletions