[Top][All Lists]

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

Re: <> redirection has changed

From: Chet Ramey
Subject: Re: <> redirection has changed
Date: Mon, 24 Jun 2002 12:14:56 -0400

> Bash Version: 2.04
> Patch Level: 0
> Release Status: release
> Description:
> The behaviour of "<>" redirection has changed somewhere between
> bash versions 1.14.7 and 2.04.  The older "bash" implemented "<>" by opening
> the file in question twice, once readonly and once writeonly, and then doing
> "dup2()" twice, once on fd 0 and once on fd 1.  The newer bash opens the
> file in question just once (for read and write) and then does "dup2" just
> once for fd 0.  The second way matches the man page description, but it
> does not work for at least some practical applications.

The <> redirection changed to conform to the posix spec.

``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]