echo disp(1+2); > test.sci
echo disp("foo") >> test.sci
more test.sci | bin\scilex -nwni
Change-Id: I669e468b44086c4e8c466cea1dd4c14660a11b4b
{
#ifndef _MSC_VER
if (!isatty(fileno(stdin)))
+#else
+ if (!isatty(fileno(stdin)) && (fileno(stdin) != -2))
+#endif
{
__CommandLine = strdup("");
}
else
-#endif
{
/* Call Term Management for NW and NWNI to get a string */
__CommandLine = getCmdLine();