I tested the patch with indicated changes and there still is
problem. Namely, interpreter has concept of frames. During
early startup FriCAS is in 'initial' frame. But normal use
is via 'sman', and in such case different frame is in use.
Variables in different frames are considered different.
The problem is that patch keeps existing frames (and variables),
but user ends up in a new frame, so variables from old
session are not visible. There is possibility to change
frame, but the user must know that this is possible
and how to do this. ATM I do not see how to cleanly
restore active frame (there are hacky ways, but they
still may lead to confusion under some circumstances).
I admit that I have reservation commiting code that from
point of view of naive user is not working.
--
Waldek Hebisch
heb...@math.uni.wroc.pl