From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,611a36c5530e78c5 X-Google-Attributes: gid1164f8,public From: ron@topaz.sensor.com (Ron Natalie) Subject: Re: Copyright irritation (OSF/1) on *everything* Date: 1995/04/04 Message-ID: <3lrrt3$hb3@topaz.sensor.com>#1/1 X-Deja-AN: 100802470 references: <3ll8i2$cn7@gap.cco.caltech.edu> <3lmjid$8um@topaz.sensor.com> <1995Apr3.200503.241@mbsks.franken.de> organization: Sensor Systems newsgroups: comp.sys.dec Matthias Bruestle (m@mbsks.franken.de) wrote: : Mahlzeit : Ron Natalie (ron@topaz.sensor.com) wrote: : : My favorite has got to be /bin/true on many systems. On most systems : : LINUX 1.1.18 328 bytes, #!, usage message, version and help options : Slackware 1.1.0: : -r-xr-xr-x 1 bin bin 0 Apr 7 1992 /bin/true* Not on my box, it looks like this: #!/bin/sh usage="Usage: $0 [OPTION]... --help display this help and exit --version output version information and exit" case $# in 1 ) case "z${1}" in z--help ) echo "$usage"; exit 0 ;; z--version ) echo "GNU shellutils 1.9.4"; exit 0 ;; * ) ;; esac ;; * ) ;; esac exit 0 Not only is the addition of a version number and help message (which gives no help whatsoever) kind of silly, the silly nested case to check the argument count is sort of a dumb construct for accomplishing nothing. -Ron