[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: <> redirection and notations
> It doesn't. The version of bash that Arnold has opens it O_RDWR; I
> just changed that yesterday to O_RDWR|O_CREAT.
>
> Some experimentation with `strace' and ksh shows that ksh also opens the
> file O_RDWR|O_CREAT.
but /bin/sh on all machines i've tried here require that the file exist,
therefore do not use O_CREAT. this is consistent with them being Bourne
shells and predating the existence of the O_CREAT flag.
anyway, i assume that there's consensus here that <> use O_RDWR|O_CREAT.
it does seem to make the most sense. i'll update es to add O_CREAT.
paul