ScilabEval does not sleep with input In Scipad, type in: y=input('maximum'
Reported by François VOGEL
-- Bug description --
ScilabEval does not sleep with input
In Scipad, type in:
y=input('maximum');
x=(0:y/100:y); plot(sin(x));
Then Execute -> Load into Scilab : Scilab *crashes* (on XP). This
binding relying on a ScilabEval "sync" "seq"
With Ctrl-a Ctrl-y (actually ScilabEval with no option) it works almost:
1. Ctrl-y from Scipad:
-->scipad();
-->maximum10
y=input('maximum');, x=(0:y/100:y); plot(sin(x));,
-->
(and there is no need on XP to type enter to get the prompt back -
other platforms might behave differently)
2. Direct exec of a file containing the two lines above:
-->exec questionmarechal.sce
-->y=input('maximum');
maximum-->10
-->x=(0:y/100:y); plot(sin(x));
-->
Note the difference in the prompt (word "maximum") and the number of
newlines between prompts.
It clearly looks that what is typed at the prompt is both feed to
input() and to the shell. You realize it if you type, instead of a
number, a syntax error, a command, etc.
3.Moreover, if you copy/paste the two lines at once in the shell, there
is also some strange effect:
-->y=input('maximum');
maximum-->x=(0:y/100:y); plot(sin(x));
Warning: obsolete use of = instead of ==
x=x=(0:y/100:y); plot(sin(x));
!
in execstr instruction called by :
at line 16 of function input called by :
y=input('maximum');
undefined variable : y maximum-->
-->
Francois (this bug was first sent to me by Pierre)
-- Scilab error message --
-- How to reproduce the bug --