[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: exit octave after --eval CODE ?
From: |
Andy Buckle |
Subject: |
Re: exit octave after --eval CODE ? |
Date: |
Mon, 16 Jan 2012 18:23:33 +0000 |
On 16 January 2012 18:01, Muhali <address@hidden> wrote:
> 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.
mingw Octave 3.2.4 _did_ exit when I tried your example.
--
/* andy buckle */