On 13-12-13 16:08 , Alexander Burger wrote:
(let L (line)
(prinl "Hello " (pack (trim L) "!") ) ) )
I haven't tried this specifically now, but I see two problems:
1. The loop
will never terminate. I would use
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
Yes, doing "pil greeter.l +" now works, with this in my greeter.l file:
(let L (pack (trim (line)))
(prinl "Hello " L "!") ) ) )
I'll look into that "#!" thing another day. I don't think I've used it
much, if at all, with PicoLisp.
/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.
Have a nice weekend!