Package: gnuplot-doc
Version: 4.2.5-2
Severity: normal
Hi!
In /usr/share/doc/gnuplot-doc/html/String_005fvariables.html
the following example doesn't work:
filename = "mydata.inp"
lines = ` wc --lines @filename | sed "s/ .*//" `
The output for me is:
gnuplot> filename = "test.txt"
gnuplot> lines = ` wc --lines @filename | sed "s/ .*//" `
wc: @filename: No such file or directory
gnuplot> lines =
^
constant expression required
gnuplot>
The right way to do it seems this one instead (which is
useless for the purpose of the example):
gnuplot> filename = "test.txt"
gnuplot> lines = system(sprintf("wc --lines %s | sed 's/ .*//'", filename))
Thank you,
Luca
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30.1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]