|
From: sfeam <sf...@us...> - 2015-08-03 00:10:05
|
On Monday, 03 August 2015 09:31:48 AM Dave Horsfall wrote:
> Version 5.0 patchlevel 1 last modified 2015-06-07
>
> I've just spotted a weird problem in one of my scripts. I'm manipulating
> the date, and I have the line "month = `date +%m`" to extract the month as
> a number.
>
> Come August, and it appears as:
>
> gnuplot> month = 08
> ^
> "health.gp", line 51: unexpected or unrecognized token
>
> My guess is that "08" is being parsed as an octal number, and hence
> invalid;
Correct
> I could've sworn that this was working last year...
Nope. This has been true since at least version 4.4 (March 2010)
although the error message has changed:
G N U P L O T
Version 4.4 patchlevel 0
last modified March 2010
System: Linux 3.14.43-desktop-1.mga4
Copyright (C) 1986-1993, 1998, 2004, 2007-2010
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help seeking-assistance"
immediate help: type "help"
plot window: hit 'h'
Terminal type set to 'wxt'
gnuplot> month = 08
^
';' expected
gnuplot> foo = 077
gnuplot> print foo
63
> Anyone else seeing this?
>
>
|