Hi Fred, Thanks. I see some debug outout at the end of your file: hello What is your name? )SI not cleared at the end of ./hello.apl: hello[2] X ← ⍞ ^ ⋆ hello ^ That debug output should only occur if a testcase file is executed and not for normal script file like your hello.apl. This should be fixed in SVN 472. ------ Apart from that I can't really see what is wrong. The intended behavior (and the actual behavior on my box) is that GNU APL reads from input files as long as there are unprocessed files and switch to stdin after the last input file was processed. In your case, hello.apl defines function hello and calls it on the last line of hello.apl. After having read the last line of hello.apl, the next input is read from stdin: hello ← from script What is your name? Jürgen ← from stdin Hello Jürgen If your box behaves differently then I need more details. /// Jürgen On 09/13/2014 03:31 AM, Frederick H.
Pitts wrote:
Gentle people, As of SVN 470, ⍞ references are taking their input from the APL source file instead of the terminal if there is any source file left to be read. It appears that the interpreter is starting to execute code before the interpreter has completely consumed the source file and is confusing the file input stream with the terminal stream.A file that demonstrates the error is attached. Regards, Fred |
- [Bug-apl] Gnu APL Quad-Quote read coming from souce fil... Frederick H. Pitts
- Re: [Bug-apl] Gnu APL Quad-Quote read coming from ... Juergen Sauermann
- Re: [Bug-apl] Gnu APL Quad-Quote read coming f... Frederick H. Pitts
- Re: [Bug-apl] Gnu APL Quad-Quote read comi... Juergen Sauermann
- Re: [Bug-apl] Gnu APL Quad-Quote read ... Frederick H. Pitts
- Re: [Bug-apl] Gnu APL Quad-Quote ... Juergen Sauermann
- Re: [Bug-apl] Gnu APL Quad-Qu... Frederick H. Pitts
- Re: [Bug-apl] Gnu APL Qua... Juergen Sauermann