Running maxima with sbcl and problems with empty args



Firstly, Merry Christmas!

Secondly, a possible bug report. I just (about 2 hrs ago) downloaded and
compiled maxima CVS successfully and then did a make install
into /usr/local/ (debian linux unstable)

However, just calling maxima gives an error (which I'll describe in a
sec). I had a look at the "maxima" shell script, which is at src/maxima,
set verbose (by commenting the test), and found that the command called
was

exec sbcl --core /usr/local/lib/maxima/5.14.0cvs/binary-sbcl/maxima.core
--noinform --end-runtime-options --eval '(cl-user::run)'
--end-toplevel-options '' '' '' '' '' '' '' '' ''

But this produces the following output:

Error: Error during processing of initialization
file /home/rupert/.sbclrc:

  couldn't read from #<SB-SYS:FD-STREAM for
"file /home/rupert/src/maxima/" {BB14091}>:
    Is a directory

Calling sbcl without the trailing '' symbols (caused by not having
values for $1 etc.) gives the following:

$ sbcl --core /usr/local/lib/maxima/5.14.0cvs/binary-sbcl/maxima.core
--noinform --end-runtime-options --eval '(cl-user::run)'
--end-toplevel-options
Maxima 5.14.0cvs http://maxima.sourceforge.net
Using Lisp SBCL 1.0.12.debian
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) 

and just works (that's just copy/pasting from the previous command and
dropping the empty quotes). Moreover, giving sbcl even just one argument
after the --end-toplevel-options stops it moaning, that is, calling
"src/maxima -v" produces

exec sbcl --core /usr/local/lib/maxima/5.14.0cvs/binary-sbcl/maxima.core
--noinform --end-runtime-options --eval '(cl-user::run)'
--end-toplevel-options -v '' '' '' '' '' '' '' ''

Which works as expected. Unless this is a mistake in my setup, may I
suggest adding a test, maybe in the sbcl specific portion of src/maxima,
to not write the empty arguments if there are none or something? I can
write it, but don't want to if it's just that my setup's breaking
things.

I apologise: this email appears to be word-wrapped by evolution, so all
the pastes from the terminal etc. look a bit dodgy. I wrote it in emacs,
so I'm attaching the text as a file too (which obviously won't get
wrapped) and hoping the list allows it!

Rupert
-------------- next part --------------
Firstly, Merry Christmas!

Secondly, a possible bug report. I just (about 2 hrs ago) downloaded
and compiled maxima CVS successfully and then did a make install into
/usr/local/ (debian linux unstable)

However, just calling maxima gives an error (which I'll describe in a
sec). I had a look at the "maxima" shell script, which is at
src/maxima, set verbose (by commenting the test), and found that the
command called was

exec sbcl --core /usr/local/lib/maxima/5.14.0cvs/binary-sbcl/maxima.core --noinform --end-runtime-options --eval '(cl-user::run)' --end-toplevel-options '' '' '' '' '' '' '' '' ''

But this produces the following output:

Error: Error during processing of initialization file /home/rupert/.sbclrc:

  couldn't read from #<SB-SYS:FD-STREAM for "file /home/rupert/src/maxima/" {BB14091}>:
    Is a directory

Calling sbcl without the trailing '' symbols (caused by not having
values for $1 etc.) gives the following:

$ sbcl --core /usr/local/lib/maxima/5.14.0cvs/binary-sbcl/maxima.core --noinform --end-runtime-options --eval '(cl-user::run)' --end-toplevel-options
Maxima 5.14.0cvs http://maxima.sourceforge.net
Using Lisp SBCL 1.0.12.debian
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) 

and just works (that's just copy/pasting from the previous command and
dropping the empty quotes). Moreover, giving sbcl even just one
argument after the --end-toplevel-options stops it moaning, that is,
calling "src/maxima -v" produces

exec sbcl --core /usr/local/lib/maxima/5.14.0cvs/binary-sbcl/maxima.core --noinform --end-runtime-options --eval '(cl-user::run)' --end-toplevel-options -v '' '' '' '' '' '' '' ''

Which works as expected. Unless this is a mistake in my setup, may I
suggest adding a test, maybe in the sbcl specific portion of
src/maxima, to not write the empty arguments if there are none or
something? I can write it, but don't want to if it's just that my
setup's breaking things.

I apologise: this email appears to be word-wrapped by evolution, so
all the pastes from the terminal etc. look a bit dodgy. I wrote it in
emacs, so I'm attaching the text as a file too (which obviously won't
get wrapped) and hoping the list allows it!

Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://www.math.utexas.edu/pipermail/maxima/attachments/20071225/de9e486b/attachment.pgp