Re: APL: GNU: How to output to a file?

2023-02-19 Thread knud van eeden
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

Prototype erasing variable

2023-02-19 Thread Mr. Sunday
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. __ _ __ __ _____ __ / // | / // / / / / | / __ \ / /

Re: APL: GNU: How to output to a file?

2023-02-19 Thread Dr . Jürgen Sauermann
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

Re: libapl stdout

2023-02-19 Thread Dr . Jürgen Sauermann
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