Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!mit-eddie!uw-beaver!cornell!parmelee From: parmelee@wayback.cs.cornell.edu (Larry Parmelee) Newsgroups: news.software.nntp Subject: Re: NFS questions Message-ID: <20438@cornell.UUCP> Date: 24 Aug 88 12:04:42 GMT References: <20405@cornell.UUCP> Sender: nobody@cornell.UUCP Reply-To: parmelee@wayback.cs.cornell.edu (Larry Parmelee) Organization: Cornell Univ. CS Dept, Ithaca NY Lines: 23 In my previous article, I quoted several shell scripts. Steve Hayman 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