aboutsummaryrefslogtreecommitdiff
path: root/jim_tcl.txt
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2011-11-30 08:54:08 +1000
committerSteve Bennett <steveb@workware.net.au>2011-11-30 13:21:49 +1000
commitf26d7dbb4195fb474cec6ca20de86b58032ef51c (patch)
treec6eb7a9d02e19b1599557404984111ab21b37862 /jim_tcl.txt
parent9315550396ac91116129fc395ea9513772b4c07d (diff)
downloadjimtcl-f26d7dbb4195fb474cec6ca20de86b58032ef51c.zip
jimtcl-f26d7dbb4195fb474cec6ca20de86b58032ef51c.tar.gz
jimtcl-f26d7dbb4195fb474cec6ca20de86b58032ef51c.tar.bz2
Add [info alias]
To access the command that an alias refers to Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r--jim_tcl.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt
index ccfb57e..c40235e 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -63,6 +63,7 @@ Changes between 0.72 and 0.73
4. Add `info statics`
5. Add +build-jim-ext+ for easy separate building of loadable modules (extensions)
6. `local` now works with any command, not just procs
+7. Add `info alias` to access the target of an alias
Changes between 0.71 and 0.72
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1546,7 +1547,7 @@ alias
~~~~~
+*alias* 'name args\...'+
-Creates a single word alias (`proc`) for one or more words. For example,
+Creates a single word alias (command) for one or more words. For example,
the following creates an alias for the command `info exists`.
alias e info exists
@@ -1556,7 +1557,7 @@ the following creates an alias for the command `info exists`.
`alias` returns +'name'+, allowing it to be used with `local`.
-See also `proc`, `curry`, `lambda`, `local`.
+See also `proc`, `curry`, `lambda`, `local`, `info alias`
append
~~~~~~
@@ -2570,6 +2571,10 @@ The legal +'option'+'s (which may be abbreviated) are:
+'procname'+, in order. +'procname'+ must be the name of a
Tcl command procedure.
++*info alias* 'command'+::
+ +'command'+ must be an alias created with `alias`. In which case the target
+ command and arguments, as passed to `alias` are returned.
+
+*info body* 'procname'+::
Returns the body of procedure +'procname'+. +'procname'+ must be
the name of a Tcl command procedure.