Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: ron@topaz.sensor.com (Ron Natalie)
Subject: Re: Copyright irritation (OSF/1) on *everything*
Date: 1995/04/04	[thread overview]
Message-ID: <3lrrt3$hb3@topaz.sensor.com> (raw)
In-Reply-To: 1995Apr3.200503.241@mbsks.franken.de

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



  reply	other threads:[~1995-04-04  4:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-04-02  5:00 Copyright irritation (OSF/1) on *everything* C. Titus Brown
1995-04-02  5:00 ` Ron Natalie
1995-04-03  4:00   ` Matthias Bruestle
1995-04-04  4:00     ` Ron Natalie [this message]
1995-04-05  4:00       ` Charles M Richmond
1995-04-04  4:00     ` Dan Pop
1995-04-02  5:00 ` John L. Henning
1995-04-03  4:00   ` Ron Natalie
1995-04-07  4:00   ` Ian Dall
1995-04-10  4:00     ` Sean Donelan
1995-04-10  4:00       ` Dan Pop
1995-04-11  4:00         ` Steven Kirby
1995-04-12  4:00           ` Pete Halverson
1995-04-12  4:00         ` Carlie Coats
1995-04-02  5:00 ` Titus Purdin
1995-04-02  5:00 ` Daniel S. Riley
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox