set -o noclobber
... works wonders to avoid this.Sure, one may have to think and replace instances of:
foo > bar
with: foo | tee bar >/dev/null
or: rm -f bar ; foo > bar
... but the times the "noclobber" option has _helped_ me more than makes up for the times it's been a nuisance. replies(2):