load_pathname in maxima -b, was: Maxima 5.31.0 release
Subject: load_pathname in maxima -b, was: Maxima 5.31.0 release
From: Robert Dodier
Date: Tue, 3 Sep 2013 15:58:21 +0000 (UTC)
On 2013-09-03, John Lapeyre <lapeyre.math122a at gmail.com> wrote:
> The bug in which load_pathname is not set by maxima -b
>
> http://www.math.utexas.edu/pipermail/maxima/2013/032023.html
>
> is still present. It was not present in maxima 5.28.
I don't see that -- the code to process -b foo.mac actually constructs
batch("foo.mac") and evaluates that (and that code dates back a long
time), so I see the following:
$ maxima --batch foo.mac
Maxima 5.31.0 http://maxima.sourceforge.net
using Lisp CLISP 2.49 (2010-07-07)
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) batch("foo.mac")
read and interpret file: /home/robert/maxima/maxima-git/maxima-code/foo.mac
(%i2) print("hello; load_pathname=",load_pathname)
hello; load_pathname= foo.mac
(%o2) foo.mac
(%o2) foo.mac
where foo.mac contains just
print("hello; load_pathname=", load_pathname);
What do you get instead?
best
Robert Dodier