Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!amdcad!lll-crg!seismo!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.unix Subject: Re: getopt(1) doesn't/can't preserve quoted args Message-ID: <6038@elsie.UUCP> Date: Wed, 5-Mar-86 20:22:36 EST Article-I.D.: elsie.6038 Posted: Wed Mar 5 20:22:36 1986 Date-Received: Fri, 7-Mar-86 08:14:40 EST References: <152@babel.UUCP> <1443@brl-smoke.ARPA> Distribution: net Organization: NIH-LEC, Bethesda, MD Lines: 17 Summary: set -- is a bsd nono > . . .They proposed altering the usage > of getopt(1) from the current > set -- `getopt ops $*` > to > eval set -- "`getopt ops "$@"`" Do note that set -- whatever is considered an error by the "sh" that comes with 4.[123]bsd. When writing shell scripts, you can make life easier for bsders by doing a set -$- whatever which is acceptable to both bsd and System V. -- UNIX is an AT&T Bell Laboratories trademark. -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX and Elsie are Digital Equipment and Borden trademarks