summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-07-22 07:42:49 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-07-22 07:42:49 -0700
commitc1f3675dc5616f25698dbc4cd712495bcf3fc6ac (patch)
tree49bf86dec2e77d9926fa4ba7bf00d84599488495
parent8656762261648b940bb5bb858933badd06b69c6b (diff)
downloadtxr-c1f3675dc5616f25698dbc4cd712495bcf3fc6ac.tar.gz
txr-c1f3675dc5616f25698dbc4cd712495bcf3fc6ac.tar.bz2
txr-c1f3675dc5616f25698dbc4cd712495bcf3fc6ac.zip
doc: eliminate example uses of obsolete txr-path.
* txr.1: In the --args example, don't use txr-path, but txr-exe-path. Also, path-cat instead of plain string catenation. The example for save-exe was additionally doing something wrong: taking the dir-name of txr-path, which would calculate the parent of the executable directory. This example is harmonized with the --args one.
-rw-r--r--txr.17
1 files changed, 4 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index 451bccf8..3086fefe 100644
--- a/txr.1
+++ b/txr.1
@@ -68620,7 +68620,7 @@ executable can then be edited so that the data area which follows the
bytes contains the following string:
.verb
- --args|-e|(load `@{txr-path}main.tl`)
+ --args|-e|(load (path-cat (dir-name txr-exe-path) "main.tl"))
.brev
When the
@@ -68718,8 +68718,9 @@ which will load a file called
that is located in the same directory.
.verb
- (save-exe "myapp"
- "--args|-e|(load `@(dir-name txr-path)/main.tl`)")
+ (save-exe
+ "myapp"
+ "--args|-e|(load (path-cat (dir-name txr-exe-path) \e"main.tl\e"))")
.brev
.SH* DEBUGGER