Earlier quoted context omitted.
"That doesn't help with sed -i and similar things." Can you give an example? I don't know what you mean. "Zsh stops redirection errors" Which is what the post I was answering to was complaining about, wasn't it? "it won't help even if cat is in the front" Why not? "cat > foo" will error out if "foo" exists and NO_CLOBBER is set.
>> "That doesn't help with sed -i and similar things." > Can you give an example? I don't know what you mean. Sure. The first line below is dangerous no matter what zsh does to save you from yourself. The second line is safe no matter which shell you are using, and no matter what other commands are in the pipeline: sed $SEDOPTIONS "s/$SEARCHTERM/$REPLACEMENT/g" $FILENAME cat $FILENAME | sed $SEDOPTIONS "s/$SEARCHTERM…
But, in your own example you have a useless use of cat:
cat $FILENAME | sed $SEDOPTIONS "s/$SEARCHTERM/$REPLACEMENT/g"
could be replaced with: sed $SEDOPTIONS "s/$SEARCHTERM/$REPLACEMENT/g"