Re: Cannot run script from bash

2014-07-10 Thread Alexander Burger
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.

Re: Cannot run script from bash

2014-07-10 Thread Luis P. Mendes
> 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

Re: Cannot run script from bash

2014-07-09 Thread Alexander Burger
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

Re: Cannot run script from bash

2014-07-09 Thread Henrik Sarvell
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

Cannot run script from bash

2014-07-09 Thread Luis P. Mendes
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 ()