|
From: Ethan M. <merritt@u.washington.edu> - 2005-03-08 00:24:45
|
On Monday 07 March 2005 02:45 pm, Ethan Merritt wrote:
> Juergen Wieferink wrote (apropos RFE 1108413):
>
> > The proper syntax would be a string function
> > "command('blabla1')" returning the standard output as a
> > string (as suggested by Petr in October 2004). I still think
> > this would be a useful feature.
>
>
> What I *can* see how to do easily is to distinguish between
> single back-quotes and double back-quotes.
And then there is the very unix-style solution:
Create an external script named "quote"
#!/bin/csh
echo '"'
$*
echo '"'
and then issue the command as
gnuplot> numvar = `mycommand $1 $2 $3`
gnuplot> stringvar = `quote mycommand $1 $2 $3`
--
Ethan A Merritt merritt@u.washington.edu
Biomolecular Structure Center
Mailstop 357742
University of Washington, Seattle, WA 98195
|