cxreg/smartcd — pull request #5 by garethstockwell (2012-05-03 12:52:14+00:00)
Title: Temporarily disable noclobber for bash

bash doesn't have zsh's localoptions, so we store the old value of
the clobber option in a global variable, and then explicitly
restore it once the file write is complete.