Hello Jurgen,
I assume that this is only reproducible in Microsoft Windows.
If I try it with MSDOS cmd.exe and trying /cygdrive/c/temp/ it shows that it
can not find that path.
G:\CYGWIN32\bin 20-Feb-23 0:42:11.35>apl.exe -f
/cygdrive/c/temp/helloworld.apl > /cygdrive/c/temp/ddd.txtThe system
GNU APL replaces a variable's contents when taking the prototype with 0⍴⊂.
Note also that a second variable assigned to the original variable is also
affected.
__ _ __ __ _____ __
/ // | / // / / / / | / __ \ / /
Hi Knud,
I tried this, both on GNU/Linux and on cygwin in a VM
running Windows XP (since I do not have a
native Windows machine) and running apl in a cygwin
shell:
apl --LX '"Hello World" >
/tmp/x
In both cases /tmp/x
Hi,
two explanations:
1. ⎕FIO does not allow closing of file descriptors 0, 1, and 2 aka.
stdin, stdout and stderr.
Closing them is usually a mistake because it disconnects the interpreter
from its I/O. That
should explain the DOMAIN ERRORs.
2. Files opened with fopen (aka.*⎕FIO[3]*) are buf