>>>>> "Emmanuel" == Emmanuel Michon <emmanuel.michon+maxima at gmail.com> writes:
Emmanuel> Hello,
Emmanuel> I wrote this
Emmanuel> wri(e) := with_stdout(sconcat(e,".",load_pathname,"out"),cgrind(e));
Emmanuel> and I see that load_pathname is unset when using maxima -b foo.mac
Emmanuel> (resolves to "nil").
Emmanuel> As a workaround it's ok with
Emmanuel> maxima --init-mac=foo.mac --batch-string "quit();"
Emmanuel> but maxima manual documents load_pathname is set by any of the loading commands.
The issue is that, as currently implemented, -b does not load the
file. It basically makes standard input read from the file instead of
the terminal.
The --init-mac approach works because it sets maxima initialization
file to foo.mac, which is then loaded (via batchload).
What exactly are you trying to do?
Ray