Hi Luis,
> there's no return to the bash shell (either using '+' or not).
>
> If I had the
> (bye)
>
> at the bottom of the code as suggested by Henrik:
> $ pil pil_files.l -main
>
> outputs nothing and return to bash (either using '+' or not).
Yes, sure. Because (bye) is called in "pil_files.
> Correct would be
>
>(de ffiles (dir_list)
> (cond
> ((=T (info (car dir_list))) (print "is directory"))
> (T (print "is not directory")) ) )
>
> Note the 'T' in the last line.
Ok, I already corrected the code and capitalized the function parameter.
>
>> $ pil pil_file
Hi Luis,
On Wed, Jul 09, 2014 at 07:06:22PM +0100, Luis P. Mendes wrote:
> Hi again, sorry for these novice questions, but can't figure out why
No problem :)
> (de ffiles (dir_list)
>(cond
> ((=T (info (car dir_list))) (print "is directory"))
> (print "is not directory")))
The
Hi Luis, pil pil_files.l -main is the correct version, don't know why
it doesn't output anything though as I didn't try and run it myself.
Put a (bye) at the end of the script to avoid interactive mode.
On Thu, Jul 10, 2014 at 1:06 AM, Luis P. Mendes wrote:
> Hi again, sorry for these novice que
Hi again, sorry for these novice questions, but can't figure out why
this script doesn't run.
Be "pil_files.l":
#!/usr/bin/picolisp /usr/lib/picolisp/lib.l
(de ffiles (dir_list)
(cond
((=T (info (car dir_list))) (print "is directory"))
(print "is not directory")))
(de main ()