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 Thu, Apr 16, 2020 at 07:17:06PM +0700, Robert Elz wrote:
> O_NOCLOBBER|O_CREAT is intended to be the same as O_EXCL|O_CREAT when the
> file named is a regular file, but unlike the O_EXCL variant, succeed if
> the file is a special file (like /dev/ttyN) which exists already.
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?
Joerg
Home |
Main Index |
Thread Index |
Old Index