|
Hi Jay, this behavior is kind of intended, but I would be open for better solutions. The underlying problem is this: GNU APL can run interactively or from a script. But I have not found a reliable way to distinguish the two cases and I didn't want to introduce a command line option for it either because I consider that as too inconvenient for the user. First of all, I thought that displaying the message 5 times would be enough for a human (= interactive user) and continuing to display the message more often is simply bad (because if that happens in a GNU APL script then it would blow up everything. The rest then depends on the timing. If several ^Ds come in quickly then I assume a script is running (actually finished) and has closed stdin. In that case I exit the interpreter because a script that has not performed )OFF or ]NEXTFILE at this point has no chance to continue and would hang if I would not exit the interpreter. Otherwise (the ^Ds come in more slowly) I expect a human user (who was warned earlier that he should use )OFF) The message "EOF at Command.cc:65" is an indication that ^D was detected. Everything entered before that message is being discarded (including a possibly entered command like )OFF.). /// Jürgen On 08/21/2015 12:46 PM, Jay Foad wrote:
When I build and run GNU APL on Ubuntu 15.04, ^D seems to behave strangely. |
- [Bug-apl] problems with ^D Jay Foad
- Re: [Bug-apl] problems with ^D Juergen Sauermann
