givemecode wrote:
> 
> 
> Functionally there is little difference, except that the first approach
> opens the file twice (once in write/truncate mode and once in write/append
> mode), which means twice as many points for an i/o error. The second
> approach only opens the output once and streams the data to it as the data
> is generated (or when the file descriptor is flushed, to be more precise). 
> 

Stephan - I have more more question: why does append (>>) need to open in
truncate mode first? Isn't truncate mode deleting the contents of the file?
append shouldn't delete but well, append. thanks!!
-- 
View this message in context: 
http://old.nabble.com/What-is-the-difference-between-%3E-and-%3E%3E-in-a-makefile.-tp31260849p31261989.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to