Thread: Funny stuff
View Single Post
Old 8th October 2014
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

http://cvsweb.openbsd.org/cgi-bin/cv...in/head/head.c

Quote:
Fix a 37 year old bug introduced by Bill Joy on August 24, 1977
that was already present in the 1BSD release on March 9, 1978
by merging Keith Bostic's 22 year old fix from 4.4BSD (not kidding).

Original CSRG SCCS commit message:

^As 00009/00006/00145
^Ad D 5.7 92/03/04 14:35:42 bostic 9 8
^Ac can't use freopen; example is "date | head file1 /dev/stdin"
(FreeBSD never had this bug, since it imported 4.4BSD-Lite sources to start with; see: https://github.com/freebsd/freebsd/c...in/head/head.c. Don't know about NetBSD)
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote