[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

executable scripts and arguments

From: Dupuis
Subject: executable scripts and arguments
Date: Mon, 8 Feb 2010 05:20:06 -0800 (PST)


I'm "hit" by the "shebang" expansion problem as explained at, that is, I created
a stand alone octave script with as first line
#!/usr/bin/octave --no-init-file --persist
The problem is that the program is called with
argv[0] = /usr/bin/octave
argv[1] = "--no-init-file --persist"
argv[2] =  the name of the script
This way, octave returns an error message because it doesn't understand
argv[1], which results from the concatenation of the two intended args. Did
someone already succeed in avoiding this problem ?


View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]