summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorPaul A. Patience <paul@apatience.com>2021-07-10 12:12:46 -0400
committerKaz Kylheku <kaz@kylheku.com>2021-07-10 17:46:20 -0700
commit5a75bbff7852752ffb09afc57b171dfcf4dbd51a (patch)
tree53c20f67c3ba9a0c4b6c645f7bd98a923440bee4 /txr.1
parente11ce7002975eb2ad785f4bd9ca3f0c95a86a9aa (diff)
downloadtxr-5a75bbff7852752ffb09afc57b171dfcf4dbd51a.tar.gz
txr-5a75bbff7852752ffb09afc57b171dfcf4dbd51a.tar.bz2
txr-5a75bbff7852752ffb09afc57b171dfcf4dbd51a.zip
doc-lookup: ignore BROWSER when empty.
* stdlib/doc-lookup.tl (open-url): Treat empty BROWSER variable as if it were unset (i.e., ignore it). Otherwise the doc function silently fails rather than falling back to alternative URL-opening methods. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.17
1 files changed, 4 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index c035ba39..82f53081 100644
--- a/txr.1
+++ b/txr.1
@@ -82571,9 +82571,10 @@ function is relied upon to open the URL.
On other platforms, if the
.code BROWSER
-environment variable exists, its value is assumed to indicate the
-name or path of the web-browsing program which can accept the URL
-as an argument. If this variable doesn't exist, then
+environment variable exists and is nonempty,
+its value is assumed to indicate the name or path
+of the web-browsing program which can accept the URL as an argument.
+If this variable doesn't exist or is empty, then
.code doc
searches for a system-dependent URL-opening utility, such as
.codn xdg-open .