|
From: Tatsuro M. <tma...@ya...> - 2017-07-29 07:44:52
|
----- Original Message ----- > From: theozh <th...@gm...> > To: Tatsuro MATSUOKA <tma...@ya...>; gnu...@li... > Cc: > Date: 2017/7/28, Fri 18:33 > Subject: Re: [Gnuplot-info] How to ignore "popen failed"? > >> What happens you execute the script on wgnuplot_pipes.exe? >> > Thanks, Tatsuro, for that hint. Haven't tried so far. > Well, then it also seems to work :-). > So, problem solved...?! > Bastian relied in the bug ticket https://sourceforge.net/p/gnuplot/bugs/1950/ ************************************************************* This is a bug or shortcoming of the "fake" pipe emulation. If the command interpreter cannot execute a command, it returns 1. Currently gnuplot interprets this return value as such and fails. Of course 1 can also be a valid return code by a (more-or-less) successful command, which is the case here. A simple work-around (on wgnuplot.exe) is to force a return value of zero: flist=system('cmd /c "dir /B *.dat & exit 0"') ************************************************************* Tatsuro |