🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mod.os.unix
Article #29

Re: getopt command problem: doesn't re-quote

#29
From: usenet
Date: Wed, 25 Mar 1987 17:49
14 lines
1113 bytes
< Since writing one's own getopt program is trivial on a system with the
< getopt call, this is more of a major annoyance than a problem.  So, my
< questions:
< 1)  Any portable workarounds (I can't think of any)?
< 2)  Have any of the standards groups thought of proposing that this be
< fixed?

Both System V release 3 and POSIX (1003.2) recognize this problem. The Vr3
solution was to introduce a builtin into the shell called getopts which
would replace the use of getopt and do all of the proper quoting. POSIX is
following suit.

					Tony Hansen
					ihnp4!pegasus!hansen
Technical Details
Message-ID: <279@mcdchg.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!mcdchg!usenet

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!mcdchg!usenet
From: usenet@mcdchg.UUCP
Newsgroups: mod.os.unix
Subject: Re: getopt command problem:  doesn't re-quote
Message-ID: <279@mcdchg.UUCP>
Date: Wed, 25-Mar-87 12:49:35 EST
Article-I.D.: mcdchg.279
Posted: Wed Mar 25 12:49:35 1987
Date-Received: Fri, 27-Mar-87 04:27:30 EST
Sender: usenet@mcdchg.UUCP (Usenet Admin)
Organization: AT&T-IS Labs, Lincroft, NJ
Lines: 14
Approved: usenet@falkor.UUCP