Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.UUCP Newsgroups: comp.unix.questions Subject: Re: getopt command problem: doesn't re-quote Message-ID: <5641@brl-smoke.ARPA> Date: Wed, 18-Feb-87 15:52:18 EST Article-I.D.: brl-smok.5641 Posted: Wed Feb 18 15:52:18 1987 Date-Received: Fri, 20-Feb-87 21:22:35 EST References: <274@rabbit1.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Distribution: na Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <274@rabbit1.UUCP> robert@rabbit1.UUCP (Robert L. Oliver) writes: >... the getopt command seems to have a bit of a problem. >It doesn't "re-quote" arguments, so they get broken up incorrectly >when parsed by the shell. Yes, the "getopt" utility cannot be made to work right in Bourne shell scripts. That is why it has been replaced with a "getopts" shell built-in in SVR3. IEEE 1003.2 expects to adopt "getopts", not "getopt" (assuming I get the shell specification written in time).