From owner-freebsd-standards Fri Feb 22 4:40:16 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 1AB7737B402; Fri, 22 Feb 2002 04:40:13 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id XAA07619; Fri, 22 Feb 2002 23:40:08 +1100 Date: Fri, 22 Feb 2002 23:40:19 +1100 (EST) From: Bruce Evans X-X-Sender: To: Tim Robbins Cc: , Subject: Re: bin/35201: link and unlink are not SUSv2-compliant as the manpage states In-Reply-To: <200202220433.g1M4XsV38018@descent.robbins.dropbear.id.au> Message-ID: <20020222233126.Y25184-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 22 Feb 2002, Tim Robbins wrote: > >Description: > The manual pages for link and unlink, which are 'part of' ln and rm, > and share the same manual pages, claim that these utilities are SUSV2 > compliant. This is not the case. > > >From The Single UNIX Specification, Version 2, XBD, Utility Argument Syntax: > Guideline 10: > "The argument -- should be accepted as a delimiter indicating the end of > options. Any following arguments should be treated as operands, even if they Can you quote POSIX.1-2001? It is more authoritative, and almost as easy to find. > ... > link and unlink, therefore, should accept the "--" delimiter. The fix for this part should use getopt(3) instead of yet more home made arg parsing. getopt(3) gives special semantics "--" automagically. I think they are the same as specified in the guidelines. Otherwise, many other utilities would have this bug. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message