[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: exit octave after --eval CODE ?
From: |
Martin Helm |
Subject: |
Re: exit octave after --eval CODE ? |
Date: |
Mon, 16 Jan 2012 19:32:53 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111219 Thunderbird/9.0 |
Am 16.01.2012 19:01, schrieb Muhali:
> The help on command line options has
>
> `--eval CODE'
> Evaluate CODE and exit when done unless `--persist' is also
> specified.
>
> but octave does not exit when invoked with a script file, such as
> ------
> # foo.m
> disp(e) ;
> ------
>
> %> octave -q --eval 'x=1;' foo.m
> %> 2.72
> %>
>
> I suggest a phrase like 'and exit if FILE is empty' as help text.
>
> M.
Which version of octave are you using (and on which operating system).
Testing literally your example on GNU/Linux 64bit (openSUSE) with octave
3.4.3 exits as it should.