Hi Jon,

> (while T
>     (let L (line)
>         (prinl "Hello " (pack (trim L) "!") ) ) )

I haven't tried this specifically now, but I see two problems:

1. The loop

      (while T
         ...

   will never terminate. I would use

      (until (eof)
         ...

2. The PicoLisp always interprets the current input channel. This is,
   while a file is being 'load'ed, this very same file. So if you
   intend to read from standard input (what I assume here), you need
   an explicit

      (in NIL
         (until (eof)
            ...


> /greeter.l: line 6: syntax error near unexpected token `('
> /greeter.l: line 6: `    (let L (line)'

This, however, seems another problem. Obviously Bash tries to execute
this script. Something must have been wrong with the "#!" notation, so
that it was not recognized.

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to