aboutsummaryrefslogtreecommitdiff
path: root/jim_tcl.txt
diff options
context:
space:
mode:
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r--jim_tcl.txt24
1 files changed, 12 insertions, 12 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt
index fec2a4a..9c993c0 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -976,7 +976,7 @@ Consider the following attempt to exec a list:
set cmd {ls -l}
exec $cmd
-This will attempt to exec the a command named "ls -l", which will clearly not
+This will attempt to exec a command named "ls -l", which will clearly not
work. Typically eval and concat are required to solve this problem, however
it can be solved much more easily with +\{*\}+.
@@ -1928,7 +1928,7 @@ command. The legal +'options'+ are:
dict get with the remaining arguments as second (and possibly
subsequent) arguments. This facilitates lookups in nested dictionaries.
If no keys are provided, dict would return a list containing pairs
- of elements in a man- ner similar to array get. That is, the first
+ of elements in a manner similar to array get. That is, the first
element of each pair would be the key and the second element would
be the value for that key. It is an error to attempt to retrieve
a value for a key that is not present in the dictionary.
@@ -3179,12 +3179,12 @@ the list are to be matched against pattern and must have one of the values below
lsort
~~~~~
-+*lsort* ?*-index* 'listindex'? ?*-nocase!-integer|-real|-command* 'cmdname'? ?*-unique*? ?*-decreasing*|*-increasing*? 'list'+
++*lsort* ?*-index* 'listindex'? ?*-nocase|-integer|-real|-command* 'cmdname'? ?*-unique*? ?*-decreasing*|*-increasing*? 'list'+
Sort the elements of +'list'+, returning a new list in sorted order.
By default, ASCII (or UTF-8) sorting is used, with the result in increasing order.
-If +-nocase+ is specified, comparisons are case-insenstive.
+If +-nocase+ is specified, comparisons are case-insensitive.
If +-integer+ is specified, numeric sorting is used.
@@ -3283,7 +3283,7 @@ Searches for the package with the given +'name'+ by examining each path
in '$::auto_path' and trying to load '$path/$name.so' as a dynamic extension,
or '$path/$name.tcl' as a script package.
-The first such file which is found is considered to provide the the package.
+The first such file which is found is considered to provide the package.
(The version number is ignored).
If '$name.so' exists, it is loaded with the `load` command,
@@ -3446,7 +3446,7 @@ The following switches modify the behaviour of +'regexp'+
Use newline-sensitive matching. By default, newline
is a completely ordinary character with no special meaning in
either REs or strings. With this flag, +[^+ bracket expressions
- and +.+ never match newline, a +^+ anchor matches the null
+ and +.+ never match newline, an +^+ anchor matches the null
string after any newline in the string in addition to its normal
function, and the +$+ anchor matches the null string before any
newline in the string in addition to its normal function.
@@ -3538,7 +3538,7 @@ The following switches modify the behaviour of +'regsub'+
Use newline-sensitive matching. By default, newline
is a completely ordinary character with no special meaning in
either REs or strings. With this flag, +[^+ bracket expressions
- and +.+ never match newline, a +^+ anchor matches the null
+ and +.+ never match newline, an +^+ anchor matches the null
string after any newline in the string in addition to its normal
function, and the +$+ anchor matches the null string before any
newline in the string in addition to its normal function.
@@ -4555,7 +4555,7 @@ handler is removed.
Sets or returns the script for when the socket is writable.
+$handle *onexception* '?exception-script?'+::
- Sets or returns the script for when when oob data received.
+ Sets or returns the script for when oob data received.
For compatibility with 'Tcl', these may be prefixed with `fileevent`. e.g.
@@ -4568,7 +4568,7 @@ Time-based execution is also available via the eventloop API.
Sleeps for the given number of milliseconds. No events are
processed during this time.
-+*after* 'ms'|*idle* script ?script \...?'+::
++*after* 'ms'|*idle* 'script ?script \...?'+::
The scripts are concatenated and executed after the given
number of milliseconds have elapsed. If 'idle' is specified,
the script will run the next time the event loop is processed
@@ -4734,7 +4734,7 @@ The optional 'pack' extension provides commands to encode and decode binary stri
+'varName'+. The value is packed according to the given type
(integer/floating point/string, big-endian/little-endian), width and bit offset.
The variable is created if necessary (like `append`).
- Ihe variable is expanded if necessary.
+ The variable is expanded if necessary.
+*unpack* 'binvalue' *-intbe|-intle|-uintbe|-uintle|-floatbe|-floatle|-str* 'bitpos bitwidth'+::
Unpacks bits from +'binvalue'+ at bit position +'bitpos'+ and with +'bitwidth'+.
@@ -4776,7 +4776,7 @@ See the online documentation (http://jim.tcl.tk/index.html/doc/www/www/documenta
tree
~~~~
The optional, pure-Tcl 'tree' extension implements an OO, general purpose tree structure
-similar to that provided by tcllib ::struct::tree (http://tcllib.sourceforge.net/doc/struct_tree.html)
+similar to that provided by tcllib ::struct::tree (http://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/struct/struct_tree.html)
A tree is a collection of nodes, where each node (except the root node) has a single parent
and zero or more child nodes (ordered), as well as zero or more attribute/value pairs.
@@ -4786,7 +4786,7 @@ and zero or more child nodes (ordered), as well as zero or more attribute/value
All operations on the tree are invoked through this object.
+$tree *destroy*+::
- Destroy the tree and all it's nodes. (Note that the the tree will also
+ Destroy the tree and all it's nodes. (Note that the tree will also
be automatically garbage collected once it goes out of scope).
+$tree *set* 'nodename key value'+::