steps to reproduce:
In> ToFile("out") Echo("Result:")
expected result: file containing "Result:"
> cat out
Result:
>
actual result:
Java-Yacas: error message, no file written
In> ToFile("out") Echo("Result:")
net.sf.yacas.YacasException: In function "ToFile" : generic error
Out>
C-Yacas: empty file written
In> ToFile("out") Echo("Result:")
Out> Echo("Result:");
In> quit
Quitting...
> ls
out
> cat out
>
note
ToFile() did work in C-Yacas 1.3.6 and (at least) Java-Yacas 1.3.5
JavaYacas part of the issue fixed in r3191
Unfortunately, I'm unable to reproduce the CYacas issue (current trunk/linux). Could you please re-check with current trunk?
Thanks for the ToFile() fix in JavaYacas.
In CYacas with current trunk I still have the issue described (empty file). I did a clean svn co, ./makemake, ./configure --prefix=...., make, make install.
Possibly the reason is that make install does not copy the file packages.ys. When I copy the file from the source scripts directory to PREFIX/share/yacas/scripts the issue disappears (the file out contains "Result:". Can you reproduce this?
As a related note, ./yacas --scripts mypath/scripts fails: terminate called after throwing an instance of 'std::bad_alloc'
fixed in r3193