summaryrefslogtreecommitdiff
path: root/jimsh.c
Commit message (Collapse)AuthorAge
* Clean up the indentation messSteve Bennett2010-10-15
| | | | | | Use 'indent'. Not perfect, but at least consistent. Signed-off-by: Steve Bennett <steveb@workware.net.au>
* Improve stack trace handlingSteve Bennett2010-10-15
| | | | | | | | *: Get rid of JIM_ERR_ADDSTACK and use interp->addStackTrace instead *: 'return -code error' doesn't add a stack frame *: Rename _file_copy to {file copy} for better error messages *: Use 'return -code' to prevent excessive levels in the stack trace Also rename info_nameofexecutable to {info nameofexecutable}
* Bug fixes and featuresSteve Bennett2010-10-15
| | | | | | Support end+<n> index And generally simplify the index handling Add support for 'info nameofexecutable'
* Many improvements, bug fixesSteve Bennett2010-10-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *: Allow math functions to be enabled via configure *: Allow support for references to be removed *: Documentation updates *: Jim_ListLength() now returns the result directly *: Optimise list -> dict conversion *: Consistent capitalisation of some structures, functions *: Add support for abbreviations to Jim_GetEnum() *: The commands to 'info' may be abbreviated *: Use abbreviation support in parsing options to 'subst' *: Use Jim_GetEnum() to parse return code names *: Optimise 'array get', 'array set' if no conversion needed *: Import Tcl string.test *: string compare now returns -1,0,1 like Tcl *: Fix 'string last' with index=0 *: Add support for 'string reverse' *: Add -nocase option to 'string equal' *: Fix infinite loop in 'string repeat str -1' *: Support braced patterns in glob *: glob should not return dot files unless the pattern starts with . *: Simplify glob.tcl by using some new features *: When creating C extensions from Tcl, preserve newlines and invoke with Jim_Eval_Named() to produce more meaningful error messages. *: Also remove all comments, not just those starting in the first column *: Add support for 'n+n' and 'n-n' in string/list indexes (Tcl 8.5) *: Add a level to the stack trace for 'return -code error' *: 'return -code' should also affect the return from 'source' (see Tcl docs) *: Fix lsort -command *: Some systems don't have INFINITY
* Bugs, features, testsSteve Bennett2010-10-15
| | | | | | | | | The result of boolean ops on doubles is an int *: e.g. 0.5 < 0.1 should be 0, not 0.1 Implement jimsh -e <cmd> Allow jim to be built in a different location *: e.g. mkdir build; cd build; ../configure ...; make jimsh Add dict.test
* Fix a couple of bugsSteve Bennett2010-10-15
| | | | | | Fix unset ::var properly this time Ensure that jimsh exits with the correct exit code *: Previously a script that did 'exit 0' would exit with 7!
* Implement some new featuresSteve Bennett2010-10-15
| | | | | | | | | | | | | | | | Implement 'lreplace' Implement 'string last' Implement 'pid' Implement 'info procs' Implement 'info script' Implement 'info patchlevel' as an alias for 'info version' Implement syslog extensions for jim Fix return code display in jim-interactive.c Make jim more compatible if JIM_TCL_COMPAT is set *: Use tcl_interactive rather than jim_interactive *: Use auto_path rather than jim_libpath Add "." to the lib search path, not "./" Fix a couple of files with CRLF line endings
* Fix exit code from jimshoharboe2010-10-15
| | | | | | A script exiting with 'exit 0' would not give a return code of 0 Signed-off-by: Steve Bennett <steveb@workware.net.au>
* $argv0 should be the name of the scriptoharboe2010-10-15
| | | | Signed-off-by: Steve Bennett <steveb@workware.net.au>
* Convert package to use jim-subcmdSteve Bennett2010-10-15
| | | | | Also, no need to install tcl extensions Display any errors from loading static extensions
* More static extension stuffSteve Bennett2010-10-15
|
* Add clock commandSteve Bennett2010-10-15
|
* Add file and exec (along with subcmd support)Steve Bennett2010-10-15
|
* Split package and load out of jim.cSteve Bennett2010-10-15
|
* Strip out unneeded junk from JimSteve Bennett2010-10-15
| | | | Nvp, getopt, move interactive processing to jim-interactive.c
* Cutover to new workware fork of Jim TclSteve Bennett2010-10-15
| | | | | | | | Note that this commit removes some files and undoes some commits which will be reapplied later. This is the easiest way to switch across. Signed-off-by: Steve Bennett <steveb@workware.net.au>
* Bring corrected license as mentioned in freebsd/...Wojciech A. Koszek2010-02-01
| | | | | | | Remove "FreeBSD license" statements, since it's not a correct term I believe. Small cleanup while being here.
* Revert "Bring correct license -- I think freebsd/ directory has an agreements"Wojciech A. Koszek2010-02-01
| | | | This reverts commit 1e2fdd7d9e877fbe2c88a4c32f098ce1e575dc1d.
* Bring correct license -- I think freebsd/ directory has an agreementsWojciech A. Koszek2010-02-01
| | | | | | | | for relicensing all files within Jim project. "FreeBSD license" isn't correct term, so basically remove it. Try to make the whole place consistent.
* 2009-08-16 Steve Bennett <steveb@workware.net.au>oharboe2009-08-16
| | | | * jimsh.c: A script exiting with 'exit 0' would not give a return code of 0
* * jimsh.c: $argv0 should be the name of the scriptoharboe2009-08-16
|
* * retire CVS keyword expansion. Plays havoc with patches.oharboe2008-06-16
|
* JimGetExePath needs to be a _path_ not the file name.patthoyts2005-04-13
|
* Fixes for this two bugs:antirez2005-04-11
| | | | | | | | | | | | | | | (1) jim.c Jim_FormatString() char array spec[] is defined as having two elements but at the 'default:' case of the switch statement an assignment is made to the third element (2) jimsh.c JimGetExePath() After the call of strrchr() the value of p could be NULL in the case that argv[0] is just plain "jim". The next line should have a test for NULL added to avoid dereferencing the NULL pointer. (This is the cause of a Bus Error on Mac OS X.) Many thanks to Colin McPhail for reporting this two problems.
* Rework of the [scan] command finished. It does not any longer usechi2005-04-10
| | | | | | | | | | | sscanf for scanning purposes, only for parsing within SetScanFmtFromAny. We could get rid of it there too, if necessary. It pass all tests on all platforms I had access to (mainly Linux, Solaris, FreeBSD, MacOS X). But I am confident, that it will pass on the others as well. A small new introduced C99-ism was fixed in jimsh.c as well.
* Fix win32 buildpatthoyts2005-04-08
|
* Fixed a typo that prevented compilation with JIM_ANSICantirez2005-04-07
|
* Modified jimsh.c in order to put the directory of the Jim executableantirez2005-04-06
| | | | as a component of jim_libpath.
* .jimrc support (or jimrc.tcl). Minimal readline extension, just enoughantirez2005-04-05
| | | | | to allow to the pure-Jim rlprompt extension to provide a readline-aware interactive shell with history.
* Did some fix in jimsh.c, exported some more API function to setantirez2005-03-08
| | | | | variables and global variables using a string C as name instead of a Jim_Obj. This is more handy in mani conditions.
* Added [info patchlevel] and setup argv0 and argv variables in jimsh.patthoyts2005-03-08
| | | | Changed Jim_InteractivePrompt to take a pre-initialized interpreter.
* jimsh addedantirez2005-03-02