maybe a bug with prolog script
db <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Hello,
The following prolog script
-------------------------------
#! /usr/bin/swipl -t main -s
main :-
catch(goal, E, (print_message(error, E), fail)),
halt.
main :-
halt(1).
goal :-
writeln('hello').
------------------------------
works with SWI-Prolog version 6.4.1 for x86_64-linux
does not work with SWI-Prolog version 6.6.0 for amd64,
it displays :
swipl: Usage:
1) swipl --help Display this message (also -h)
2) swipl --version Display version information (also -v)
3) swipl --arch Display architecture
...
If I add arguments it works with SWI-Prolog version 6.4.1 for x86_64-linux
and does not with SWI-Prolog version 6.6.0 for amd64.
Why ?
I have the same problem with the swi prolog version 6.5.3
Thanks a lot for yours answers
Dominique