🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #70

Re: NFS questions

#70
From: Larry Parmelee
Date: Wed, 24 Aug 1988 12:04
24 lines
1320 bytes
In my previous article,  I quoted several shell scripts.
Steve Hayman <sahayman@watmath.waterloo.edu> pointed out
to me that the shell scripts could be further simplified
by the use of an oft overlooked feature of the Bourne
Shell.  For example, the shell script I originally had as:

	#! /bin/sh
	case "$#" in
	0) exec /usenet/bin/`/usr/bin/basename $0` ;;
	*) exec /usenet/bin/`/usr/bin/basename $0` "$@" ;;
	esac

can be re-written as:

	#! /bin/sh
	exec /usenet/bin/`/usr/bin/basename $0` ${1+"$@"}

and similiar changes are possible with the other shell scripts
as well.  Thanks Steve.

-Larry Parmelee
parmelee@cs.cornell.edu
cornell!parmelee
Technical Details
Message-ID: <20438@cornell.UUCP>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!mit-eddie!uw-beaver!cornell!parmelee
References: <20405@cornell.UUCP>

Show Full Headers
Complete Article Headers
Message-ID: <20438@cornell.UUCP>
Subject: Re: NFS questions
Date: Wed, 24 Aug 1988 12:04:42 +0000
From: parmelee@wayback.cs.cornell.edu (Larry Parmelee)
References: <20405@cornell.UUCP>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!mit-eddie!uw-beaver!cornell!parmelee
Newsgroups: news.software.nntp
Sender: nobody@cornell.UUCP
Reply-To: parmelee@wayback.cs.cornell.edu (Larry Parmelee)
Organization: Cornell Univ. CS Dept, Ithaca NY
Lines: 23