I have the following prolog script, which when called in in my shell, runs as expected
#!/usr/bin/env swipl -t prolog
:- initialization (main, halt).
main(Argv):-writeln(Argv).
% ./tst.pl a b c
[a,b,c]
According to the documentation in 2.11.2.1 Using PrologScript; it should be possible to open this file for debugging / inspection purposes using the -l or -t flags.
Instead, I have the following result:
% swipl -l tst.pl
[]
% swipl -t prolog tst.pl
[]
This is with SWI-Prolog (threaded, 64 bits, version 8.3.20) on a mac (using zsh)
Is this a regression, or am I doing something wrong?