Is gnuplot package compiled with NOCWDRC

Asked by Russel Winder

Using gnuplot on Ubuntu Hardy -- package 4.2.2-1 -- it appears that the .gnuplot file in the current directory is ignored. According to the gnuplot manual this is the case if the NOCWDRC option is set on compilation. I think this is actually a bug and will report it as such, but I thought I should ask a question first to ensure I have the correct data.

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnuplot Edit question
Assignee:
No assignee Edit question
Solved by:
Arnaudus
Solved:
Last query:
Last reply:
Revision history for this message
Arnaudus (a-lerouzic) said :
#1

Hi,

Unfortunately, I can't answer directly, but on Intrepid, gnuplot (gnuplot 4.2 patchlevel 3) behaves as expected (the content of the .gnuplot file is read).

Revision history for this message
Russel Winder (russel) said :
#2

Arnaudus,

Thanks for looking at this.

Were you trying ~/.gnuplot or ./.gnuplot ?

I have to admit I hadn't tried ~/.gnuplot, I needed ./.gnuplot to be read so that I could have project specific common code. However it seems that Hardy doesn't do the right thing :-(

Revision history for this message
Arnaudus (a-lerouzic) said :
#3

Hi,

I have checked .gnuplot, but I did that directly in the root of my home, oops. I confirm the "bug": Gnuplot reads ~/.gnuplot, but not ./.gnuplot. According to a quick Google search, looking in the current directory first is supposed to be the expected behavior.

Revision history for this message
Best Arnaudus (a-lerouzic) said :
#4

OK, so I think I have found a workaround: something like:

alias gnuplot='if [ -e ./.gnuplot ] ; then gnuplot ./.gnuplot - ; else gnuplot ; fi'

seems to work (except that the header with the version of gnuplot etc. is not displayed). Anyway, not nery convenient, right?

Revision history for this message
Russel Winder (russel) said :
#5

Sorry for having forgotten about this problem. I guess I should write up a bug report?

Revision history for this message
Arnaudus (a-lerouzic) said :
#6

Probably. Best would be to check with the last version of Ubuntu (9.4) if the bug is still present.

Revision history for this message
Russel Winder (russel) said :
#7

Unfortunately, yes it is :-(

Revision history for this message
Russel Winder (russel) said :
#8

Thanks Arnaudus, that solved my question.

Revision history for this message
Russel Winder (russel) said :
#9