octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #54094] The command window freezes if you you


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #54094] The command window freezes if you you use single equal (=) in while function instead of double equal(==)
Date: Mon, 11 Jun 2018 00:07:28 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #1, bug #54094 (project octave):

Doesn't Ctrl-C work for Windows?

In a file called whiletest.m I put


x = 5;
while (x = 1)
  y = x + 1;
endwhile


and for linux I see the following:


GNU Octave, version 4.4.0
Copyright (C) 2018 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

>> whiletest
warning: suggest parenthesis around assignment used as truth value near line
2, column 10 in file '/home/linux/octave/bug/54094/whiletest.m'

>>


in which I typed Ctrl-C to break out of the infinite loop.  Also note that I'm
seeing a warning at the point of the "mistyped" equal sign.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54094>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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