On 12. Nov 2006, at 15:59, baptiste auguie wrote:
Example:
#! /sw/bin/octave -f
load("datafile.dat");
...
displays an error,
error: load: unable to open input file `datafile.dat'.
It’s a relative path, so it must be, that the current working directory of your command is not the one which contains datafile.dat.
If you do a real command (as suggested in the other letter) then the current working directory should always be that of the current file. For ⌃R executions it is not the case.