Thread (1 message) 1 message, 1 author, 2021-03-29

Re: [PATCH v2 1/5] Makefile: rename objects in-place, don't clobber

From: Junio C Hamano <hidden>
Date: 2021-03-29 18:27:33

Junio C Hamano [off-list ref] writes:
quoted
    	thing:
    		rm -f thing thing+
    		prepare contents for thing >thing+
Did I say that?  I recall I specifically avoided the "redirection"
because this is *NOT* shell-script only principle.
Ah, I did say that in the response to the previous iteration.  But
the same principle applied to your other patch for [ce]tags which
took "-o output", and I was recalling my response to that thread.

In any case, whether "cmd >thing" or "cmd -o thing", if cmd leaves a
broken output in thing when it fails, it needs the "into thing+ and
rename to thing" dance.  Redirecion always need it, but a well behaved
command like $(CC) should not need it.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help