From owner-freebsd-bugs Wed Oct 11 22:50: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 93D6337B66C for ; Wed, 11 Oct 2000 22:50:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id WAA34258; Wed, 11 Oct 2000 22:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Wed, 11 Oct 2000 22:50:02 -0700 (PDT) Message-Id: <200010120550.WAA34258@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: bin/21918: Unjustified basename code removal and subsequent breakage Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/21918; it has been noted by GNATS. From: Bruce Evans To: ak03@gte.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG, des@FreeBSD.ORG Subject: Re: bin/21918: Unjustified basename code removal and subsequent breakage Date: Thu, 12 Oct 2000 16:43:14 +1100 (EST) On Wed, 11 Oct 2000 ak03@gte.com wrote: > >Description: > > The comment on the old (correct) revision states that: > If the suffix operand is present, is not identical to the > characters remaining in string, and is identical to a suffix > of the characters remaining in string, the suffix suffix > shall be removed from string. > The new version removes suffix even when suffix is identical > to the remaining string itself. That is clearly not the > behaviour both comment and basename man page describe. basename(3) is remarkably feeble compared with basename(1). Another case that has changed is `basename ""`. basename(3) is specified to bogotify this case by changing "" to ".". Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message