aboutsummaryrefslogtreecommitdiff
path: root/jim_tcl.txt
AgeCommit message (Collapse)AuthorFilesLines
2010-12-02Add the [exists] commandSteve Bennett1-0/+12
Especially simplifies checking for the existence of procs. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-24Remove the bio extension and add 'copyto' to aio.Steve Bennett1-23/+6
The bio extension is a hangover from TinyTcl. Since Jim supports binary strings, there isn't much need for it except for 'bio copy'. So move this to aio as 'copyto' and implement 'file copy' in terms of it. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Updates to the UTF-8 documentationSteve Bennett1-8/+8
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Update documentation to cover UTF-8 support for regexpSteve Bennett1-13/+42
Also create README.utf-8 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Add UTF-8 support to JimSteve Bennett1-0/+119
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-08Don't hardcode /lib/jimSteve Bennett1-3/+5
Instead, set TCL_LIBRARY based on where jim is installed. This defaults to /usr/local (thus /usr/local/lib/jim), or can be modified with either configure or make. e.g. ./configure --prefix=/usr or make prefix=/usr install Now auto_path is initialised only to TCL_LIBRARY, and doesn't include "." which could be undesirable. At the same time, simplify jimsh initialisation using a script instead of C code. Add the path to the executable to auto_path. Also, no longer use JIM_TCL_COMPAT. Always use the tcl-compatible names, $auto_path and $tcl_interactive. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-03Autogenerate the command index in the documentationSteve Bennett1-1/+1
This was lost in the merge of the WorkWare fork Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-03Simplify and document [load]Steve Bennett1-2/+20
Previously both load and package require would search the library path to find the file to load. Simplify this by requiring an explicit path with load and have package require search the path. Also, document load and how it is used by package require. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-30Update documentation for recent featuresSteve Bennett1-22/+38
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-29Update version to 0.64Steve Bennett1-1/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Document dict keys and lsort -indexSteve Bennett1-1/+13
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Set $argc in jimshSteve Bennett1-0/+4
Apparently tclsh does this. It is just [llength $argv] Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Licence wording updates.Steve Bennett1-2/+0
Per v0.51, don't refer to the FreeBSD licence Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Implement 'pid handle'Steve Bennett1-5/+22
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15string trimright now always removes nullsSteve Bennett1-0/+1
Not Tcl compatible, but makes sense Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Use $::env to build environment for execSteve Bennett1-0/+4
Also, switch to using 'sh -c' for the vfork() implementation because it then allows command line redirection, pipes and setting the environment. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15eventloop improvements and enhancementsSteve Bennett1-65/+91
Move Jim_EvalObjBackground() out of the core to eventloop Time events are now kept and triggered in time order Time handlers are removed before execution Add 'update' Add 'after info' and 'after idle' Include time events in the return from Jim_ProcessEvents() Add Tcl eventloop tests Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Implement 'after ms'Steve Bennett1-2/+6
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Add support for 'info references'Steve Bennett1-0/+5
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Implement open "|..."Steve Bennett1-2/+14
Uses a Tcl wrapper, popen, from tclcompat Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Set $::errorCode from execSteve Bennett1-3/+53
This allows the return code from a failed 'exec' command to be retrieved. Also support -errorcode in catch and return. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Fix some eventloop problemsSteve Bennett1-4/+7
File handlers now pass through the error code and the handler is deleted on error. If there is nothing to do, vwait returns. If bgerror doesn't exist, print the original error to stderr. Also remove the 'eof' event handler since it isn't needed. Can just call [eof $f]. This also fixes source locations within 'readable' scripts. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Add 'string is' to JimSteve Bennett1-0/+23
Also, double parsing now allows trailing white space Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Add basic ipv6 support to JimSteve Bennett1-11/+36
Use -ipv6 to signify that ipv6 should be used Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Clean up the indentation messSteve Bennett1-0/+4162
Use 'indent'. Not perfect, but at least consistent. Signed-off-by: Steve Bennett <steveb@workware.net.au>