On Fri, 21 Dec 2007, Allin Cottrell wrote:
* For the file write commands (eqnprint -f, tabprint -f, outfile,
store) we use the userdir unless we're given a dotname, in which
case we use the shelldir.
Sorry, that's incomplete. For these commands: if given a dotfile,
use shelldir; else if USE_CWD is set (e.g. via the gui
proferences), use shelldir; otherwise use userdir.
The function that does this is gretl_maybe_switch_dir() in
gretl_paths.c
Allin.