[Ecls-list] Command-line argument weirdness

Juan Jose Garcia-Ripoll jjgarcia at users.sourceforge.net
Fri May 16 16:54:57 UTC 2008

On Fri, May 16, 2008 at 5:33 PM, Mark Hoemmen <mark.hoemmen at gmail.com> wrote:
> Just wondering -- how come
> ecl -eval "(require \'asdf)"

The slash is not required. ecl -eval "(require 'asdf)" Otherwise you
get the same effect as if you write at the prompt (require \'asdf) and
that means \'asdf is interpreted as the symbol name |'ASDF|

> ecl -eval "(progn (require :asdf) (push (truename \".\")
> asdf:*central-registry*))"

You cannot put in the same PROGN statement a form that creates the
ASDF package and a symbol that belongs to that package. The whole of
the PROGN statement is parsed by the lisp reader and when it reaches
asdf:*central-registry* the ASDF package does not exist. Use

ecl -eval "(require 'asdf)" -eval "(progn (push ..))"


Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)

More information about the ecl-devel mailing list