[Ecls-list] -shell and -load difference

David_Creelman at pa.com.au David_Creelman at pa.com.au
Wed Oct 17 23:35:08 UTC 2007

|         |           "Juan Jose Garcia-Ripoll"|
|         |           <jjgarcia at users.sourcefor|
|         |           ge.net>                  |
|         |           Sent by:                 |
|         |           juanjose.garciaripoll at goo|
|         |           glemail.com              |
|         |                                    |
|         |                                    |
|         |           17/10/2007 06:44 PM      |
|         |                                    |
  |                                                                                                                              |
  |       To:       "David_Creelman at pa.com.au" <David_Creelman at pa.com.au>                                                        |
  |       cc:       ecls-list at lists.sourceforge.net                                                                              |
  |       Subject:  Re: [Ecls-list] -shell and -load difference                                                                  |

2007/10/17, David_Creelman at pa.com.au <David_Creelman at pa.com.au>:
> sh-3.1$ cat somelisp.mail | ecl -norc -shell runsomelisp.lisp

David, this answers it all. "ecl", with -shell command, will quit
after running "runsomelisp.lisp". That is how shell scripts are
intended to work. Take for instance the Unix shell "bash". If you do
bash foo.sh, it will exit when the script is finished: it will not
expect further commands from the input. If you want "ecl" to process
the lines in the mail, then you have to do something in
"runsomelisp.lisp" to parse and execute the remaining lines.

Hi Juanjo,
Thanks for that. I get it now.
I added some code to read in the rest of the file, write it to a file and
load it back into ECL.

...Is there a way to run CL code from strings within ECL without writing
and reading a temporary file (this would just be a nicety since it works
fine as is)?



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

More information about the ecl-devel mailing list