[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
octave2.9 in scripts and curly braces
From: |
Eric Chassande-Mottin |
Subject: |
octave2.9 in scripts and curly braces |
Date: |
Mon, 11 Dec 2006 17:41:06 +0100 |
hi,
I'm having a problem with octave 2.9.9 used in a
script like the one below:
-----------------------------------------------------------------------
#!/usr/bin/octave2.9 -qf
argument=argv{1};
-----------------------------------------------------------------------
the script gives the following error:
error: built-in function cannot be indexed with {
error: evaluating assignment expression near line 3, column 9
error: near line 3 of file `./test.sh'
curly braces are both used to index the arguments of the script
and structures in Octave v2.9, hence the error.
is there a simple escape?
thanks,
eric.
- octave2.9 in scripts and curly braces,
Eric Chassande-Mottin <=