Re: [PATCH v2 2/4] compat/basename: make basename() conform to POSIX
- From
- Johannes Schindelin <schindelin@wisc.edu>
- Date
- Jan 9, 2016, 14:53 UTC
- Message-ID
- <alpine.DEB.2.20.1601091553310.2964@virtualbox>
- In-Reply-To
- <xmqqy4bz29mp.fsf@gitster.mtv.corp.google.com>
Hi Junio,
On Fri, 8 Jan 2016, Junio C Hamano wrote:
Show 7 quoted lines
> Johannes Schindelin <johannes.schindelin@gmx.de> writes:
>
> > According to POSIX, basename("/path/") should return "path", not
> > "path/". Likewise, basename(NULL) and basename("abc") should both
> > return ".".
>
> Did you mean basename("abc"), not basename(""), here? I don't understand: I wrote basename("abc")... ;-)Ciao, Dscho