Output of system commands



Hi,

The output of sytem commands invoked by the Maxima function "sytem" is
unfortunately not passed to the wxMaxima working window.
Is there a reason for that or would it be possible to accomplish that?

I require to get the working directory via system("cd") or any else 
command.
Is there any else command (like the hardly documented ?xchdir(dir) for
changing the working directory?).

I know, a workaround would be
  system("cd >tempfile")$
  printfile("tempfile")$

But I think that is not very straightforward.

Thanks in advance,
Wilhelm Haager