[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

command line args to guile

From: Rick Taube
Subject: command line args to guile
Date: Fri, 7 Mar 2003 09:59:46 -0600

im trying to start guile and have it both eval an expr and load files when it starts. is there a command switch like -c that will eval an expression but NOT exit guile?
when i do guile --help i dont see it. id like to do something like:

% guile -c '(define foo 1)' -l "bar.scm" -l "bif.scm"
guile> foo

so that the define happens before the loading.
but the -c  switch exits.

I then tried working with the -e option that takes a function but i guess i do not understand
how to notate a lambda expr from the shell:

% guile -e '(lambda args (display args))'
ERROR: Unbound variable: #{\(lambda\ args\ \(display\ args\)\)}#

im not sure how to notate it so that guile reads it as a lambda expr and calls it.
any help would be appreciated!
rick taube

reply via email to

[Prev in Thread] Current Thread [Next in Thread]