aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-06-03Add make-bootstrap-jim scriptSteve Bennett3-11/+91
Allows a single source file version of jimsh to be created for bootstrap purposes. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-03Don't set FD_CLOEXEC on standard channelsSteve Bennett1-1/+3
stdio, stdout, stderr Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-01Document changes to [local proc] and [upcall]Steve Bennett2-29/+60
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-01Add [upcall] commandSteve Bennett4-8/+90
Allows previous command definitions to be invoked when otherwise hidden via [local] Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-01Use a union for Jim_Cmd fieldsSteve Bennett3-89/+98
There is no overlap between proc command fields and native command fields, so overlap them with a union. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-01local procs now keep and restore previous defnSteve Bennett3-9/+97
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-01Add Jim_String() macroSteve Bennett22-123/+124
It is very common to get the string value without the length. Jim_String() is a macro which does that. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-31Fix a dict sugar parse bug with backslashed charsSteve Bennett2-8/+64
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-31Document recent featuresSteve Bennett2-34/+250
jimsh --version tcl_platform() proc &var proc rename args expr sugar $(...) Also add documentation for jimsh, including interactive mode Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-31Support $(...) expr shorthand syntaxSteve Bennett2-4/+85
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-31Remove unused variableSteve Bennett1-2/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-31Remove leftover empty fileSteve Bennett1-0/+0
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-31Fix a minor parsing bug - quoted backslash newlineSteve Bennett2-2/+30
Should eat spaces and tabs after the newline Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-28Fix spelling and grammar in the manualSteve Bennett2-54/+67
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-27closing an 'open |...' filehandle should waitSteve Bennett1-0/+6
for the detached child processes to complete. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-27Ensure detached child processes are reapedSteve Bennett3-135/+60
Like Tcl, reap zombies on each exec invocation. This commit also simplifies the implementation of exec by using waitpid(). Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-27Opened filehandles should be marked FD_CLOEXECSteve Bennett1-0/+4
This avoids them being inherited by child processes. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-26Fix an infinite loop in substSteve Bennett2-1/+6
If a null byte is encountered Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-26Fix crash with: global ::nameSteve Bennett2-1/+12
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-25Fix a crash when evaluating an invalid expressionSteve Bennett2-17/+45
expr {5 ne ::} Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-24Minor changes to the debian packagingSteve Bennett3-6/+5
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-24deb: committed files generated by dh_make and editedEdgar Grimberg23-0/+1043
The files were generated by running dh_make in the souce folder. The source folder was named jimtcl-0.70. Changed the following: changelog, control, copyright. To generate the .deb package, run: dpkg-buildpackage -rfakeroot Signed-off-by: Edgar Grimberg <edgar.grimberg@gmail.com>
2011-05-24Fix usage of DESTDIR to ensure proper install destSteve Bennett1-11/+10
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-24Remove checks for some impossible conditionsSteve Bennett1-14/+7
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-24Small code cleanupsSteve Bennett9-25/+170
Remove Jim_SetWide() since it is only used by incr More tests for better test coverage Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-23Improve list parsingSteve Bennett6-49/+282
Also add additional tests Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-23Ensure that variable names can't contain nullsSteve Bennett1-22/+29
Under some circumstances the name was not being checked Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-23Various Code cleanupsSteve Bennett1-36/+30
Combine unicode and hex escapes Remove some unused code Generate an error if double pow() is not supported Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-23Fix some minor parsing bugsSteve Bennett2-1/+105
And add additional tests Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-23Remove some unused codeSteve Bennett2-12/+0
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-22Code shrinkage - list manipulationSteve Bennett1-42/+13
Reduce three implementations of list append/insert to one. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-21Share token interpolation implementationSteve Bennett1-164/+143
Between Jim_EvalObj() and Jim_SubstObj() in JimInterpolateTokens() Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-20Minor cleanups to dict sugar parsingSteve Bennett2-20/+23
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-20Improve subst performanceSteve Bennett1-70/+39
Remove leftover subst objType which meant that sometimes objects were being continually shifted internal rep. Also some other subst optimisations. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-19Fix some missing closing bracketsSteve Bennett1-2/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-18Fix memory leak on exec argument errorSteve Bennett1-8/+7
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-18Rename more internal functionsSteve Bennett2-25/+26
In general, use Jim_ only for public APIs. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-18Minor code cleanupSteve Bennett1-28/+22
Mark some internal functions static. Simplify JimDictSugarGet() Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-16Fix a parsing bug with quoted strings inside [...]Steve Bennett2-21/+56
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-09Remove extraneous trailing backslashSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-09If [file normalize] isn't implemented, give a messageSteve Bennett1-3/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-09Automatic proc upref with & syntaxSteve Bennett2-2/+94
e.g. proc a {&b &c} ... Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-05-09Allow proc 'args' to be renamedSteve Bennett2-14/+56
With this syntax: {args newname}. This especially helps with documentation and error messages. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-25Remove out-of-date copyrightSteve Bennett1-2/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-23Clean out the tcltests directorySteve Bennett18-419/+124
Some tests are already in tests/, move some others. Move some examples to the examples directory Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-22[package require] should load at the global levelSteve Bennett3-1/+14
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-22Simplify the accounting of call frame levelsSteve Bennett2-102/+82
Store the level directly in the call frame rather than counting it separately. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-22Fix tcltest v2 for the -setup optionSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-21More efficient [string trimright] and [string last]Steve Bennett3-33/+71
By searching backwards in [string trimright], even in utf-8 strings. And using binary comparison in [string list] Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-21string trim is now 8 bit cleanSteve Bennett2-34/+126
i.e. supports embedded nulls Also now supports utf-8 trim chars Signed-off-by: Steve Bennett <steveb@workware.net.au>