News for hackers. Stuff that matters.
Re:Stop Piping Cats by blasdel on Thursday February 11, 2010 @02:52AM (#1117170)
I have fucked myself more than once by typing > instead of >>

I find that to be a far more pernicious design error -- they should have made the longer token the destructive one, or used another character in it.

Re:Stop Piping Cats by thornist on Thursday February 11, 2010 @11:45AM (#1117996)
zsh with 'setopt noclobber' won't overwrite an existing file with '>', instead requiring '>|'. The history recall conveniently fills in the '|' for you if you up-arrow after a failed call. It works pretty nicely - I imagine other shells have similar.