aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-01-24 11:17:10 +1000
committerSteve Bennett <steveb@workware.net.au>2010-10-15 11:02:41 +1000
commit2eb26d60cb02bab06d6ebe49bf40e0765e3a4d67 (patch)
tree0f7c0ca8dabbb93d8d424e8d47b30c3903f3c270 /doc
parent571fa65a6f3cf1c0a11d8c3b46440fe8457fa6fb (diff)
downloadjimtcl-2eb26d60cb02bab06d6ebe49bf40e0765e3a4d67.zip
jimtcl-2eb26d60cb02bab06d6ebe49bf40e0765e3a4d67.tar.gz
jimtcl-2eb26d60cb02bab06d6ebe49bf40e0765e3a4d67.tar.bz2
Enhance env, fix error messages
env command allows a default to be supplied Fix wrong 'file rename' error message
Diffstat (limited to 'doc')
-rw-r--r--doc/jim_tcl.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/jim_tcl.txt b/doc/jim_tcl.txt
index bfdde6f..a33c7c9 100644
--- a/doc/jim_tcl.txt
+++ b/doc/jim_tcl.txt
@@ -1348,11 +1348,12 @@ the loop's body but continue with the next iteration of the loop.
env
~~~
-+*env* '?name?'+
++*env* '?name? ?default?'+
If *name* is supplied, returns the value of *name* from the initial
environment (see getenv(3)). An error is returned if *name* does not
-exist in the environment.
+exist in the environment, unless *default* is supplied - in which case
+that value is returned instead.
If no arguments are supplied, returns a list of all environment variables
and their values as +{name value ...}+