3 ms·
You get the same problem whenever you build up things piece by piece. So most often I work around this by atomically mv'ing a temporary file to the final prod
by cnvogel 10y ago
You get the same problem whenever you build up things piece by piece. So most often I work around this by atomically mv'ing a temporary file to the final product.
%.foo : %.bar
echo blubb >$@.tmp
cat $^ >$@.tmp
mv $@.tmp $@