|
 |
hi,
-----<snip>-----
#version 3.8;
global_settings {assumed_gamma 1}
box {0,1}
#if (0)
#declare dir_ = "/badName/";
#else
#declare dir_ = "/tmp/";
#end
#declare arr_ = array [3] {"foo","bar","baz"};
#fopen fp_ concat(dir_,"wtest.txt") write
#for (i_,0,2)
#if (2 != i_) #local c_ = ","; #else #local c_ = ""; #end
#write (fp_,concat("\"",arr_[i_],"\"",c_))
#end
#fclose fp_
-----<snip>-----
when I change the '#if' to use a non-existing directory, the alpha.9945627 and
beta.2, as well as WFP's povr, all silently ignore the fact that no file was
(could be) created, and do not return an error. both on Linux and Windows.
(thanks for the discovery goes to TdG who ran into this issue while testing some
code of mine)
regards, jr.
Post a reply to this message
|
 |