Re: Questions about standalone application behavior

"Richard A. O'Keefe" <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 23/09/2013, at 4:22 PM, Kyle Marple wrote:

> My example has a typo: 'stdin' should be 'current_input'.

Silly me for not noticing that.

OK, that mistake fixed, the program works as expected.
SWI Prolog version 6.50, running on Mac OS X 10.7.5.

There is one quirk:  the prompt gets printed:

m% zork
This is a test!
|:<EOF>m%

That's what I expect with input from standard input.

m% cat >zork.dat
a
b
c
<EOF>
m% zork <zork.dat
This is a test!
|:a
b
c
|:

You will note the two occurrences of "|:" .

That doesn't seem right.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.