A Gnuplot question
Thomas Weber
thomas.weber.mail at gmail.com
Thu Nov 27 01:26:49 CST 2008
Am Mittwoch, den 26.11.2008, 20:36 -0500 schrieb Ben Abbott:
> Do I understand correctly?
>
> You want gnuplot to tell you the directory containing the shell-script
> that called it?
I think Vic wants the .gpi script to tell where it resides.
Say, v.gpi resides in /tmp and has only a pwd statement:
$ cat /tmp/v.gpi
pwd
Now, "load v.gpi" should[1] give him "/tmp/, but
gnuplot> load "/tmp/v.gpi"
/home/weber
Contrast this with Octave's behaviour:
octave:1> source "/tmp/v.m"
basedir = /tmp
where v.m contains the one line from Vic'c first post.
[1] By "should" I mean what Vic wants.
Thomas
More information about the Help-octave
mailing list