[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conflicting start-up options: --eval and script.m
From: |
Andreas Weber |
Subject: |
Re: Conflicting start-up options: --eval and script.m |
Date: |
Mon, 05 Jan 2015 16:48:18 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
Am 05.01.2015 um 16:41 schrieb John W. Eaton:
> On 01/04/2015 04:49 AM, Andreas Weber wrote:
>> Am 04.01.2015 um 04:11 schrieb Rik:
>
>> Afterwards stdin is read (always, not only with persist) and executed.
>
> That should only happen if stdin is not connected to a tty (i.e., not
> interactive mode). Otherwise a command like
>
> octave -q -f script.m
>
> won't exit at the end of the script but will instead go on to the octave
> prompt. Probably not the behavior you expect or want. If it is, then
> you need to use --persist.
Ah yes, thank you.
> Or, we can just leave things as they are now, and if you want to
> continue reading from stdin after executing a script you have to use
> --persist whether interactive or not.
I'm absolutely fine with the current situation (after cset 65f4d9e1206c)
which removed the problematic check for gnulib::isatty (fileno (stdin)).
Andy