AIFeed

Lions' Commentary on Unix: Why It Was Secretly Copied for 20 Years

Original text(via Hacker News)

Lions' Commentary on Unix

Two students study source code beside a terminal, with a 1980 calendar on the wall.
Two students study source code beside a terminal, with a 1980 calendar on the wall.

John Lions was teaching operating systems at the University of New South Wales in Australia.

What's the best way toteach operating systems?
They need to study the Unix source.But it's tough going.
I'll write myown textbook.

In May 1976, Lions prepared lecture notes explaining the kernel source code of AT&T's Unix Version 6. These became his Unix commentary.

To understand an OS,we need to readthe actual code.
I've written a guideto the Unix kernel.We'll use it asour textbook.

By 1977, the notes were circulating among other schools and research institutions with Unix licenses [1][4]. Even Bell Labs wanted copies and eventually took over distribution [2].

Three readers pore over orange copies of the Unix commentary.
Three readers pore over orange copies of the Unix commentary.

Early on, Unix source could be studied in class. But at USENIX in June 1979, AT&T announced new Version 7 license terms restricting courses that disclosed or discussed source code. Distribution of Lions' book was tightly controlled as well [5][6].

I am altering the license.Pray I don't alter itany further.
Destroy Lions' book.No more teachingUnix source code.
There is no escapefrom our operating system.
Armored soldiers raid a Unix class while someone by the window urges the students to run.
Armored soldiers raid a Unix class while someone by the window urges the students to run.
He's teaching from the Unix source code!Seize the books!Run!
He's got the book!
Don't let himescape!
Quick! Takethe book!
An armored soldier fires at the fleeing student.
An armored soldier fires at the fleeing student.
The student twists as a shot hits him, still clutching the book.
The student twists as a shot hits him, still clutching the book.
I find your interestin source code disturbing.
Just use the system calls.Learn a little theory.Leave the internals to us.
Theory isn't enough.I need to see the code.
This code is our only hopeof understanding an OS.

For roughly twenty years before the official edition appeared, computer-science students studied from unauthorized photocopies. The book helped a generation of students learn to build operating systems of their own [5][8].

A student studies the commentary beside a computer.
A student studies the commentary beside a computer.

Meanwhile, members of the Unix community, including Peter H. Salus, Dennis Ritchie and Berny Goodheart, kept asking AT&T, Novell and the Santa Cruz Operation for permission to publish the book. SCO finally agreed. Peer-to-Peer Communications published the official edition in 1996 [5][7].

图表:Dennis Ritchie and Ken Thompson

Lions' book is finallyin print. It even hasmy foreword.
People were secretly copying itfor twenty years?Unbelievable.
The cover of Lions' Commentary on UNIX 6th Edition, with Source Code, including Ritchie's foreword.
The cover of Lions' Commentary on UNIX 6th Edition, with Source Code, including Ritchie's foreword.

You can read a reconstructed version of the commentary as a PDF, or order a print copy on Amazon. The Unix Version 6 source code is available separately from TUHS.

References

  • Lions' Commentary on UNIX 6th Edition, with Source Code
  • John Lions, Lions' Commentary on UNIX 6th Edition, with Source Code, Peer-to-Peer Communications, 1996 (ISBN 1-57398-013-7).
  • UNIX News, Vol. 2 No. 3, March 1977 - John Lions's March 11, 1977 letter and the announcement of book distribution to Unix licensees.
  • Rachel Chalmers, "Code critic", Salon, November 30, 1999 - recollections from students and Dennis Ritchie, distribution restrictions, and the path to publication.
  • Peter H. Salus, The Daemon, the GNU and the Penguin, Chapter 6: "1979", 2005 - the Version 7 license terms announced at USENIX in June 1979 and restrictions on classroom use.
  • Dennis Ritchie's October 22, 1995 letter and Peter H. Salus's July 12, 1996 letter - publication-permission correspondence preserved by Warren Toomey.
  • MIT, "Xv6, a simple Unix-like teaching operating system", "History and Background" - teaching with Lions's commentary and the background to xv6.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Hacker News
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗