In Cygwin, I set up GNU APL as a server I could connect to by doing the
following.

mkfifo /tmp/pipe
cat /tmp/pipe |apl --noColor 2>&1 | nc -l 127.0.0.1 9999 > /tmp/pipe

Now if I connect to this, GNU APL comes up, but it exhibits a rather odd
echoing of my input where it prints the first character, five spaces, and
then the rest of the input, before printing the output.  Like this...

      1 2 3 4 5
1       2 3 4 5
1 2 3 4 5
      'this is a test'
'      this is a test'
this is a test

The odd thing is that it doesn't do this if I make the program I am
redirecting a shell, or some C program that reads and writes stdio.  It
only happens when I do it with GNU APL.  While I'm not suggesting this is a
bug, I was wondering if anyone could suggest an explanation of this
unexpected behavior.  Is there something uncommon about the way GNU APL
reads and writes stdio?


-- 
Mike Duvos
m...@wolf359.net

Reply via email to