Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
In the case where a single proc/command is being checked.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Especially simplifies checking for the existence of procs.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Under some circumstances, source filenames were being leaked.
Use shared strings consistently for filenames.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Reported-By: Piotr Esden-Tempski <piotr@esden.net>
|
|
Remove a "feature" in the built-in regexp, where
a newline in the pattern was treated as alternation, like |.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Implement 'dict with' and 'dict merge' as scripts since this is simpler.
Use 'dict size' to implement 'array size'
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|
|
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
|
|
Much closer to tcltest now, including constraints.
Try to get all appropriate tests running under both Jim and Tcl.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
With zero count and also with no list elements
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And update jimsh return code handling
Reported-By: Patrick WEBER <patrick.weber@live.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Otherwise built-in regex impl. conflicts with externl regex
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Reported-By: Spencer Oliver <ntfreak@users.sourceforge.net>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The consequence is an excessive amount of calls to select
Reported-By: Patrick WEBER <patrick.weber@live.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Reported-By: Patrick WEBER <patrick.weber@live.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
configure.gnu is used by autoconf when using jimtcl as a subproject.
so ignore what happens to this file.
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
|
|
Even if disabled, the built-in regexp was still being used.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The form {n} should be considered the same as {n,n}
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Use default readline/bash behaviour of deleting char to
the right, unless the line is empty. Then it is EOF.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Instead of unsigned. Add UCHAR() macro for this.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The buffer length could be wrong when printing numeric values
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
An anchored search could use the wrong string
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Indexing into the wrong string
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Plus general improvements, including:
- Allow pasting newlines to linenoise. Use TCSADRAIN, not TCAFLUSH
so that unused input is not flushed
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Enabled by default, but can be disabled with --disable-lineedit
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also create README.utf-8
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Plus various ARE enhancements and bug fixes
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
With some ARE extensions
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The intention is to update this version to support UTF-8
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This allows scripts with CRLF line endings on (e.g.) cygwin
to work without change.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Avoid windows.h on cygwin
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
|
|
It is common to use --enable-{shared,static} to select a library flavour.
--enable-shared is equivalent to --with-jim-shared. The default behavior of
building a static library is kept.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Ensure that no public headers include the autoconf
header, jimautoconf.h, as it leads to problems
with redefined symbols.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|
|
This was lost in the merge of the WorkWare fork
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|
|
Loadable modules should be tried before script packages.
If a script accidentally tried to require itself, infinite recursion resulted.
It is a bad idea to name a script the same as an extension/package.
Also, keep the package name off the stack.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Clash with JIMSH definition
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Reported-by: Kulcsár Ferenc <crusader@netbsd.hu
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This includes C extensions and Tcl extensions
Also adds windows support (mingw32 and cygwin)
Now the sqlite*, readline and win32 extensions are supported
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|