summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-11-11 11:16:41 -0800
committerKaz Kylheku <kaz@kylheku.com>2018-11-11 11:16:41 -0800
commita1ee606cb570445be7c1e9f6988774f56c9df141 (patch)
tree98235484029a3abc7599edbc30ca5b32d72dd5b8
parent6734b978113d2b827e74e5e77fad6a7d9bc7f757 (diff)
downloadtxr-a1ee606cb570445be7c1e9f6988774f56c9df141.tar.gz
txr-a1ee606cb570445be7c1e9f6988774f56c9df141.tar.bz2
txr-a1ee606cb570445be7c1e9f6988774f56c9df141.zip
doc: fixes under Null Hack description.
* txr.1: Fix awkward wording about env's dispatch of txr, and references to wrong user name in examples.
-rw-r--r--txr.120
1 files changed, 11 insertions, 9 deletions
diff --git a/txr.1 b/txr.1
index 36c46b8a..69b73f4b 100644
--- a/txr.1
+++ b/txr.1
@@ -1301,9 +1301,11 @@ Basic example:
Here,
.code env
-searches for
-.code txr
-receives, from the operating system the arguments:
+searches for
+.codn txr ,
+finding it in
+.codn /usr/bin .
+Thus, including the executable name, \*(TX receives this full argument list:
.cblk
/usr/bin/txr /home/jenny/foo.txr --bar abc
@@ -1328,7 +1330,7 @@ the script name. The effective command line then becomes:
Command line option processing continues, beginning with the
.code -a
option. After the option is processed,
-.code /home/amy/foo.txr
+.code /home/jenny/foo.txr
is encountered again. This time it is not opened a second time;
it signals the end of option processing, exactly as it would immediately
do if it hadn't triggered the insertion of any arguments.
@@ -1350,15 +1352,15 @@ can be used in conjunction with the null hack. When
begins executing, it receives the arguments
.cblk
- /usr/bin/txr /home/amy/foo.txr
+ /usr/bin/txr /home/jenny/foo.txr
.cble
The script file is opened, and the arguments delimited by the
-null character in the hash bang line are inserted, resulting
+null character in the hash bang line are inserted, resulting
in the effective command line:
.cblk
- /usr/bin/txr --eargs:-C:175:{}:--debug /home/amy/foo.txr
+ /usr/bin/txr --eargs:-C:175:{}:--debug /home/jenny/foo.txr
.cble
Next,
@@ -1367,7 +1369,7 @@ is processed in the ordinary way, transforming the command line
into:
.cblk
- /usr/bin/txr -C 175 /home/amy/foo.txr --debug
+ /usr/bin/txr -C 175 /home/jenny/foo.txr --debug
.cble
The name of the script file is encountered, and signals the end
@@ -1377,7 +1379,7 @@ receives the
.code -C
option, instructing it to emulate some behaviors from version 175,
and the
-.code /home/amy/foo.txr
+.code /home/jenny/foo.txr
script receives
.code --debug
as