Better HN
topnewbestaskshowjobs
Log inSign up

thornist

3 karma · joined Jan 9, 2009 (17y ago) · 1 submissions

Submissions

comment 16y ago · link · parent

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.