Re:Exploring CLI Best Practices
by shabble on Wednesday October 12, 2016 @05:38PM
(#12696601)
This has bitten me occasionally, even though I know the workarounds (tempfiles or pipe-consumers like sponge(1)).
I'm wondering if there's any practical use for the behaviour, or if it's worth hacking a shell such that it produces a warning/interactive confirm prompt for it (or transparently buffers to DWIM maybe?)
Re:Exploring CLI Best Practices
by eichin on Monday October 17, 2016 @03:40PM
(#12728766)
It's pretty common to `set -o noclobber` in beginner dotfiles; doing deferred-open-if-exists is an interesting idea that would probably get a lot of resistance :-)
I'm wondering if there's any practical use for the behaviour, or if it's worth hacking a shell such that it produces a warning/interactive confirm prompt for it (or transparently buffers to DWIM maybe?)