view CITATION @ 20054:1c9ed5b4c73d

input.h: change meaning of interactive and forced_interactive global variables. * libinterp/corefcn/input.h, libinterp/corefcn/input.cc: the interactive var is set at the start of Octave session if the session would be interactive. The forced_interactive is set only by the "--interactive" option. This means that in a forced interactive session, interactive is false, and that in a not forced interactive session with the "--interactive" option, forced_interactive is true. This is a bit counter-intuitive. Also when it matters if a session is interactive or not, it should not matter if it was forced not, only whether is interactive. Change this logic. Interactive means we are running a interactive session, forced interactive means the interactive session needed to be forced. * libinterp/octave.cc: during Octave initialization, as soon as we identify if this would be an interactive session, check with forced_interactive to adjust the value of this variables. * libinterp/corefcn/error.cc, libinterp/corefcn/oct-stream.cc, libinterp/corefcn/pager.cc, libinterp/corefcn/dirfns.cc, libinterp/corefcn/sighandlers.cc, libinterp/corefcn/sysdep.cc, libinterp/corefcn/toplev.cc, libinterp/parse-tree/lex.ll, libinterp/parse-tree/oct-parse.in.yy: replace all checks for "(interactive || forced_interactive)" with simply interactive. On the few cases where forced_interactive was not checked, it was replaced with "(interactive && ! forced_interactive)", just like "! interactive" got replaced by "(! interactive || forced_interactive)", only to conserve the logic. I am uncertain if such checks are not actually bugs though.
author Carnë Draug <carandraug@octave.org>
date Tue, 24 Feb 2015 17:09:42 +0000
parents a6d13c62fccf
children f5d9e57d4380
line wrap: on
line source

To cite GNU Octave in publications use:

  John W. Eaton, David Bateman, Søren Hauberg, Rik Wehbring (2014).
  GNU Octave version 3.8.1 manual: a high-level interactive language for
  numerical computations.
  CreateSpace Independent Publishing Platform.  ISBN 1441413006,
  URL http://www.gnu.org/software/octave/doc/interpreter/

A BibTeX entry for LaTeX users is:

  @book{,
    author    = {John W. Eaton, David Bateman, S\oren Hauberg, and Rik Wehbring},
    title     = {{GNU Octave} version 3.8.1 manual: a high-level interactive language for numerical computations},
    publisher = {CreateSpace Independent Publishing Platform},
    year      = {2014},
    note      = {{ISBN} 1441413006},
    url       = {http://www.gnu.org/software/octave/doc/interpreter},
  }

We have invested a lot of time and effort in creating GNU Octave, please cite it
when using it.  See also `citation pkgname' for citing Octave packages.