22 February 2008

from the dailywtf:
While playing with the Solaris OS and reading through some of the included programs I came across /bin/true. For those not familiar with a *NIX system, this simply does nothing and returns sucessfully. Realizing that this was a shell script and not a binary executable, I decided to see how it was implemented.

bash-2.05$ cat /bin/true
#!/usr/bin/sh
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
# All Rights Reserved

# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.

#ident "@(#)true.sh 1.6 93/01/11 SMI" /* SVr4.0 1.4 */
bash-2.05$

I am not sure which is worse, that this is copyrighted, or that this is version 1.6. It really makes me wonder what the version history looks like.

No comments:

Post a Comment