Also, a + at the end of the command line is special; it turns on *Dbg
and is not included in (argv).

> > bare dash. is there any way around it?

Make a wrapper like this:

/usr/bin/picolisp /usr/lib/picolisp/lib.l file.l +++ "$@" +++

Then in file.l, remove the extraneous +++:

(setq Arguments (cdr (reverse (cdr (reverse (argv))))))
(for A Arguments (prinl A))

This makes sure there will never be a dash as first argument, or a
plus sign as the last. A little cumbersome perhaps, but it is caused
by how the picolisp interpreter works.

Reply via email to