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

one more remark about bash



Here's the scoop on bash. This is the last I'll say about it.

> Date: Thu, 1 Apr 1993 12:36:23 -0500
> From: Chet Ramey <chet@odin.INS.CWRU.Edu>
> To: arnold@cc.gatech.edu
> Subject: Re: bash <>
> 
> > It seems that bash's <> truncates (if I remember the manual right). This
> > makes little sense, and ksh's doesn't, it just opens read write.
> 
> Bash's <> (before I changed it yesterday), opens the file O_RDWR.  ksh,
> as observed using strace, opens it O_RDWR|O_CREAT.  I added the O_CREAT
> yesterday.  Look in make_cmd.c, where `flags' is assigned.
> 
> I looked at the man page, and it didn't say anything about truncation.
> The `bash.texinfo' `manual' (and I use the term extremely loosely) is
> wrong.  The final arbiter should always be the manual page -- at least
> it gets updated.