When called from the command window, both prompts work correctly. When executed from M code editor, using Execute Current Buffer, the first prompt is skipped.
Please note that the following debug message is printed in the Debug window:
18:14:28.442: JIT compile failed:"Call to function getline is not JIT-safe" at line 32 of "C:/Program Files (x86)/FreeMat/toolbox/io/input.m"
I am also facing the exact same problem. Tested with FreeMat 4.1.1 installer and also FreeMat Portable 4.1 from PortableApps.com
The input command works perfectly on the prompt but when executed from a .m file, it displays the above error message.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please note that the following debug message is printed in the Debug window:
18:14:28.442: JIT compile failed:"Call to function getline is not JIT-safe" at line 32 of "C:/Program Files (x86)/FreeMat/toolbox/io/input.m"
I am also facing the exact same problem. Tested with FreeMat 4.1.1 installer and also FreeMat Portable 4.1 from PortableApps.com
The input command works perfectly on the prompt but when executed from a .m file, it displays the above error message.
Some more details. The test was run on Windows 7 64bit