Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2000 22:50:02 -0700 (PDT)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/21918: Unjustified basename code removal and subsequent breakage
Message-ID:  <200010120550.WAA34258@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/21918; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010120550.WAA34258>