Age | Commit message (Collapse) | Author | Files | Lines |
|
More consistent behaviour of replacing past end of list
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Note that actual support is dependent upon the underlying operating
system and filesystem.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Allow minimal command "package" to take additional arguments, but ignore them.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
Update to version:
https://github.com/msteveb/linenoise/commit/174a404dfa323a17852414dfc70b36976eddf6f3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
GCC complains about possible truncation from snprintf()
jim-interp.c: In function ‘JimInterpCommand’:
jim-interp.c:164:46: warning: ‘%ld’ directive output may be
truncated writing between 1 and 20 bytes into a region of size
19 [-Wformat-truncation=]
snprintf(buf, sizeof(buf), "interp.handle%ld", Jim_GetId(interp));
^~~
jim-interp.c:164:32: note: directive argument in the range
[-9223372036854775807, 9223372036854775807]
snprintf(buf, sizeof(buf), "interp.handle%ld", Jim_GetId(interp));
^~~~~~~~~~~~~~~~~~
jim-interp.c:164:5: note: ‘snprintf’ output between 15 and 34 bytes
into a destination of size 32
snprintf(buf, sizeof(buf), "interp.handle%ld", Jim_GetId(interp));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
|
|
Update to version:
https://github.com/msteveb/linenoise/commit/d7bcf93d4de7581e043283ab461eca2310dd8fdc
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
autosetup changes:
- The syntax for templates has changed slightly
- Update config.guess and config.sub to 2018-03-08
- Add rpath support
- Add --runstatedir
Also:
- enable rpath when building libjim as shared
- ensure that 'make test' works on MacOS when libjim is shared
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The incorrect environment was used in 8f7471a0f
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Avoid modification of any variables on the parents stack.
Avoid use of stdio in the event that execve fails.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Detect when cross compiling (build != host)
Tcl exec loses stderr if redirected and an error code is returned, so
redo the approach to exec so that it works on both Tcl and Jim
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Conditions such as ECONNRESET may result in a failed ssl connection
with no ssl error, so return the stdio error in this case rather than
just "unknown SSL error"
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Some operations that failed (such as read) would leave an empty
error result.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
jim/jim.c: In function ‘SetExprFromAny’:
jim/jim.c:9109:16: error: ‘top’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
expr->expr = top;
^
jim/jim.c:9075:25: note: ‘top’ was declared here
struct JimExprNode *top;
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
Methods inherited from a base class are created with alias, so
they are not returned by 'info procs'. Need to use 'info commands' instead.
|
|
For consistency with Tcl
Reported-by: Stuart Cassoff <stwo@bell.net>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Perform the same internal checks as Jim_GetString() when
the string rep needs to be generated by calling Jim_GetString()
Reported-by: Stuart Cassoff <stwo@bell.net>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Updated to:
https://github.com/msteveb/linenoise/commit/ad5172e99520e2fe2a35b4bbd7fbc74d9df36df1
Now supports multiline mode (by setting $history::multiline to 1)
Improved windows support
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Limit the depth of the expressions to a reasonable level to prevent
stack overflow
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>
|
|
Adjacent wide character ranges were not being merged correctly, and
the final range was not being output.
Fix this, and also merge adjacent combining character ranges.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
From https://github.com/msteveb/linenoise/commit/a4545af5e3766c58100be6bf406b9a0d2049090f
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
RFC 3629 says:
Implementations of the decoding algorithm above MUST protect against
decoding invalid sequences
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The following class shorthand escapes now match Tcl when
used within bracket expressions:
\d [[:digit:]]
\s [[:space:]]
\w [[:alnum:]_] (note underscore)
e.g. [a-f\d] => [a-f0-9]
Previously these shorthand escapes were only implemented outside bracket expressions.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Small improvements to code for clarity and code reduction.
Improve comments.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Was broken by the support for --silent-rules
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Work around the problem by skipping the test
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And enable silent rules by default if using GNU make.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Mostly for --{enable,disable}-silent-rules
Use new opt-str where appropriate
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This is a workaround for IPv6 tests failing on Travis
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>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Reported-by: Stuart Cassoff <stwo@bell.net>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Write to a closed pipe in exec2-3.2 to force SIGPIPE
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Just "promote" the current channel to ssl
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now simply 'wait'
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Needed to make file join work with msys2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
On some mingw platforms exec2-3.2 isn't producing SIGPIPE
Try to make it do so.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
- fix popen [open "|pipeline ..."] to return meaningful status in close
(but note that stderr is not captured)
- popen pipelines can now be used as the target of exec redirection
- overally improvements to exec on windows. Now crt file descriptors
are used throughout
- add support for [pid], [wait] and popen on windows
- os.wait is now wait, and integrates with [exec ... &] to be able
to wait for running background tasks
- [socket pipe] is now also [pipe] and is supported on windows
- [file tempfile] is supported on windows
- move duplicated code between jim-aio.c and jim-exec.c to jimiocompat.c
- Fix [exec] on windows to match unix semantics wrt sharing the parent stream
unless redirected rather than using /dev/null
- On windows redirect to or from /dev/null is automatically converted to NUL:
- If signal support is disabled, implement a minimal Jim_SignalId() for exec and wait
- aio now supports getfd, to return the underlying file descriptor.
This is used by exec to support redirection, and allows popen channels
to support exec redirection.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|