chexum has quit [Remote host closed the connection]
chexum has joined #picolisp
chexum_ has joined #picolisp
chexum has quit [Quit: No Ping reply in 180 seconds.]
seninha has joined #picolisp
seninha has quit [Remote host closed the connection]
Regenaxer has left #picolisp [#picolisp]
<Hunar>
Hello abu .. why is pil not like other interpreters when running a script.. all other languages are ($interpreter file.ext arg1 arg2 ) but pil needs another argument /path/lib.l
<abu[m]>
Hi Hunar! 'pil' does not need such argument. 'picolisp' also does not need it, but if given, it uses it to find the installation paht
<Hunar>
but when passing args, it doesnt work
<Hunar>
wait
<Hunar>
my problem is elsewhere, running a file like (pil file.l 1 2) with this in it (println (argv)) (bye) works, but if I remove (bye) I get the problem
<abu[m]>
Yes, because it continues to interprete the file. You could use the special argument "-"
<abu[m]>
I usually use (opt) in file
<abu[m]>
(format (opt)) gives 1
<Hunar>
Aha :) great, thanks
<abu[m]>
pil file.l - 1 2
<abu[m]>
would also work, but looks a bit ugly
seninha has joined #picolisp
seninha has quit [Quit: Leaving]
chexum_ has quit [Read error: Connection reset by peer]
chexum has joined #picolisp
seninha has joined #picolisp
<aw->
hah yes, i've been caught by that issue in the past as well... numeric arguments from command line end up as strings in pil
chexum has quit [Quit: No Ping reply in 180 seconds.]