lp wrote:Yes a special shel_write mode related to later versions of the AES and nothing specific to XaAES.
Adding some traces to XaAES show that it is currently started with shel_write(0xc00, 0, 0, ....)
The first parameter is an extended mode, and indicates that cmd does not give the name of the program, but points to a structure with additional information. That's what i meant with "special modes"
Didn't know that NAES also implements that.
The flags say that in this structure, a default directory is specified (although it seems to be NULL), and also an environment. That's why this environment is used, and not the parents's one.
But i've got also another problem now. The current directory, when i run a program in the interpreter, it that where ro_68k.prg resides. Is there some way of getting the original directory, ie. the one of the source code? shel_read() cannot be used either, since that will also return only the path to the interpreter.