From owner-freebsd-bugs Fri Feb 22 4:50: 9 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C0A3437B402 for ; Fri, 22 Feb 2002 04:50:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1MCo2a62512; Fri, 22 Feb 2002 04:50:02 -0800 (PST) (envelope-from gnats) Date: Fri, 22 Feb 2002 04:50:02 -0800 (PST) Message-Id: <200202221250.g1MCo2a62512@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: bin/35201: link and unlink are not SUSv2-compliant as the manpage states Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/35201; it has been noted by GNATS. From: Bruce Evans To: Tim Robbins Cc: , Subject: Re: bin/35201: link and unlink are not SUSv2-compliant as the manpage states Date: Fri, 22 Feb 2002 23:40:19 +1100 (EST) 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-bugs" in the body of the message