When compiling and running immediately, it works as expected: prompts for reply and branches as indicated.
When run from command line, it outputs y on a line, then new line, for ever--until you ^C to break.
When you double-click, it opens terminal and runs the program as you'd expect.
This seems to be more of a problem in the way it builds rather than something wrong with the compilation.
Is there anything special need to run compiled nimrod code properly?
Further:
I also did the little greetings sample. when run directly in terminal, greetings won't run--it shouldn't. When run as ./greetings it does run.
Likewise, running yes as ./yes works properly. The problem, as above, is that it should not run at all when invoked at the system prompt as yes<return>.
When run from command line, it outputs y on a line, then new line, for ever--until you ^C to break.
When you double-click, it opens terminal and runs the program as you'd expect.
As dom said, you're not running the Nimrod program: http://en.wikipedia.org/wiki/Yes_%28Unix%29
What a strange program. Wonder where it came from.