cannot open null: for I/O redirection

Stefan Bellon sbellon at
Fri Oct 10 11:45:43 PDT 2003


I found something strange in UnixLib. When using
__RISCOSIFY_NO_PROCESS, then I'd expect the program linked against
UnixLib to handle native RISC OS file names.

If I do:

*myapp > null:

it works. However, if I do:

*myapp < null:

then I get "cannot open null: for I/O redirection". If I however do:

*myapp < /dev/null

then that works again. But I'd expect "null:" to work.

What's puzzling me is the fact that "null:" as stdout works but not as

Stefan Bellon

More information about the gcc mailing list