help-octave
[Top][All Lists]
Advanced

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

Re: use of #!/usr/bin/env octave with optargs ?


From: Michael Creel
Subject: Re: use of #!/usr/bin/env octave with optargs ?
Date: Tue, 9 Sep 2008 14:27:09 +0200

On Tue, Sep 9, 2008 at 1:04 PM,  <address@hidden> wrote:
> Quoting Eric Chassande-Mottin <address@hidden>:
>> I'd like to run a script with the following shebang line
>> #!/usr/bin/env octave -q
>>
>> but I get an error
>> /usr/bin/env: octave -q: No such file or directory
>>
>> an old thread says there are no solution
>> http://www.nabble.com/octave-shebang-td394305.html#a394305
>>
>> just wondering if this is still the case.
>
> I don't think a solution has been presented, and apparently it isn't
> trivial to produce one (see
> http://en.wikipedia.org/wiki/Shebang_(Unix)#Portability). Perhaps
> octave should ship a simple program 'octave-q' that acts just like
> 'octave' when called with the '-q' argument?
>
> Søren
>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>

Hmm, on the current Kubuntu, the following works for me:

1) create a script "octave" in ~/bin/octave that contains

#!/bin/sh
/usr/local/bin/octave -q

2) make it executable, and make sure that ~/bin/ is before
/usr/local/bin in $PATH

Good enough for government work, no?

M.



reply via email to

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