Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Anyone interested in implementing O_NOCLOBBER ?



On 16.04.2020 21:10, Robert Elz wrote:
>     Date:        Thu, 16 Apr 2020 19:27:48 +0200
>     From:        Joerg Sonnenberger <joerg%bec.de@localhost>
>     Message-ID:  <20200416172748.GA86536%bec.de@localhost>
> 
>   | What is the point of this "restriction"? They wanted to make a set flag,
>   | but allow people to not have to use sub shells when also redirecting
>   | stderr?
> 
> Sorry, I'm not following the point there, what does any of this have
> to do with sub shells or stderr ?
> 
> I expect you know all of this already, but ...
> 
> Noclobber mode started in csh in the 70's (maybe even in ashell, I no
> longer remember which extras that ended up in csh started there).
> 
> Its point was entirely so that idiots could type
> 
> 	cat foo >/my/important/file

I use this in ksh and I find this as a useful feature.

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index