octave-maintainers
[Top][All Lists]
Advanced

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

Desired behavior for bug #38485: using 'run history' twice


From: Sander van Rijn
Subject: Desired behavior for bug #38485: using 'run history' twice
Date: Sat, 9 Mar 2013 02:16:12 +0100


Fri 08 Mar 2013 06:00:09 AM CET, original submission:

Using 'run history' twice in a row leads to a segfault. The first invocation runs the previous command, whatever it was. The second invocation executes the previous command which is 'run history' and an infinite loop is generated. This isn't a common occurrence, but it isn't great behavior by the interpreter either. 

Sample Code: 

disp (1); run history run history


What would be the desired behavior in this case? An error about causing an infinite loop or a recursive implementation which would make second 'run history' in the sample code also execute 'disp (1);' ?

reply via email to

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