Fix aio close from non-global namespace
commitdd213d13411bce204850d48669632bc57b242c7c
authorSteve Bennett <steveb@workware.net.au>
Sun, 8 Dec 2013 21:28:30 +0000 (9 07:28 +1000)
committerSteve Bennett <steveb@workware.net.au>
Sun, 8 Dec 2013 22:20:05 +0000 (9 08:20 +1000)
tree8dc14dafde01afe73ca826dff438d40254c927d8
parent2448a2047e587cae8a1b2f401607b7b4c3108429
Fix aio close from non-global namespace

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>
jim-aio.c
jim-sdl.c
jim-sqlite3.c
jim.c
jim.h
tests/jim.test