Skip to content
Getting to yes.c

Details

This meetup concentrates on the common and simple commands; this time: yes.

The yes command prints 'y', followed by a newline, forever. It can also take arguments, which it prints forever.

We will look at OpenBSD, FreeBSD, NetBSD, GNU, and Illumos implementations.

With the many different authors and distinct cultures we will be sure to have much to discuss and compare. Some things to think about: what are some uses for the yes command? What errors can occur, and how are they handled? How did GNU manage to make this program 88 lines long? How did Illumos get this program indented by five tabs?

Just in case you don't have five copies of yes.c sitting on your hard drive, you can find them online:

FreeBSD:

http://svnweb.freebsd.org/base/head/usr.bin/yes/yes.c?revision=216370&view=markup

NetBSD:

http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/yes/yes.c

OpenBSD:

http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yes/yes.c

GNU:

http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/yes.c

Illumos:

https://github.com/illumos/illumos-gate/blob/master/usr/src/cmd/yes/yes.c

This should all take about three hours. Food and drinks will be provided by thoughtbot (http://thoughtbot.se/?utm_source=sthlmrb&utm_medium=meetup).

About us:

This is a reading group for code. Our focus is the classics and tools we use every day. The inspiration is the shared metaphors and expressions we have in natural language due to common books (e.g. Hitchhiker's Guide to the Galaxy, Romeo and Juliet) and movies (e.g. Hackers, A Christmas Carol).

Photo of The Classical Code Reading Group of Stockholm group
The Classical Code Reading Group of Stockholm
See more events