[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A Gnuplot question
From: |
Thomas Weber |
Subject: |
Re: A Gnuplot question |
Date: |
Thu, 27 Nov 2008 08:26:49 +0100 |
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