On Mon, Mar 28, 2011 at 10:31 PM, givemecode <[email protected]> wrote:

> 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!!
>

The >> doesn't cause two opens, but using:

echo abc > x
echo def >> x

causes two opens. By wrapping it in a scope, and redirecting the scope, we
can avoid the >> operator and do a single open.

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

Reply via email to