Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Currently tailcall resolves the command in the parent
namespace.
This also fixes the deletion of [local] commands
such that they are always correctly deleted.
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>
|
|
aio [open], as well as similar commands return the name of the
created command. If this is done in the non-global namespace, the
returned name is implicitly scoped to the current namespace while
the actual command is created in the global namespace. Thus [close]
does not work when invoked in that namespace.
The solution is to return a fully qualified name, such as ::aio.handle3
Note that this may also be a problem for similar command such as
[proc] and [alias] that return command names.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Binary conversion
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Reported-by: Andy <jimdevel@hummypkg.org.uk>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Reported-by: Sergei Gavrikov <sergei.gavrikov@gmail.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
No longer truncates the file
Reported-by: sg0x40 <https://github.com/sg0x40>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Reported-by: Paul Fertser <fercerpav@gmail.com>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
From work by Vadim Zborovskii
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
e.g. exec prog <<$data
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Previously, Jim_DeleteFileHandler() would indiscriminately
delete the first matching file handler in the list.
Instead, it should delete the file handler matching the event mask.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The following should break when a handled signal is caught.
catch -signal { vwait forever }
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also added some additional tests
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
According to the Tcl manual, in this case "binary scan returns immediately
with the number of variables that were set".
(Tests added by Steve Bennett)
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>
|
|
A conversion was being stored in a long rather than a long long
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now an octal literal needs to be explicitly indicated with a leading
0o or 0O, otherwise the number is treated as decimal.
This patch also adds support for binary literals.
e.g. 0b101 0B1101
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This also simplifies and shrinks the implementation of subst
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The MS CRT always produces a 3 digit exponent for %e
And update [format] tests to account for this difference
|
|
exec and pid tests
|
|
Speed up the timer and exec unit tests with smaller sleeps
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And some more Tcl8.6 compatible error messages
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
apply has the advantage of not disturbing the proc epoch
for short lived commands
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
These will help with error messages from [apply]
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
We strive to be compatible with the latest Tcl8.6
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>
|
|
See README.namespaces
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
It does not extend well enough to the general case,
so remove it for simplicity
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also adds Jim_ListGetIndex(), like Jim_ListIndex() but with a more convenient interface
|
|
Thus we may need a larger buffer for the encoded string
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now codepoints up to U+1FFFFF are supported, including
as literals with the new \u{NNNNNN} syntax (up to six hex digits)
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Error messages
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
To access the command that an alias refers to
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And allow commands to set a temporary name for the purpose
of generating error messages
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>
|
|
Tcl compatibility
Also add more tests from Tcl 8.6
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And import some up-to-date tests from Tcl 8.6
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
To access static variables (names and values) of a proc
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|