[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is the difference between > and >> in a makefile.
From: |
givemecode |
Subject: |
Re: What is the difference between > and >> in a makefile. |
Date: |
Mon, 28 Mar 2011 13:31:44 -0700 (PDT) |
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.
Re: What is the difference between > and >> in a makefile., givemecode, 2011/03/28
- Re: What is the difference between > and >> in a makefile.,
givemecode <=