[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {base,dir}name // semantics
From: |
David Feuer |
Subject: |
Re: {base,dir}name // semantics |
Date: |
Mon, 11 Jul 2005 15:51:09 -0400 |
User-agent: |
Mutt/1.5.9i |
On Sat, Jul 09, 2005 at 03:43:02PM +0000, Eric Blake wrote:
> POSIX allows implementations to define the behavior of 'basename //' and
> 'dirname //'. Currently, both operations in coreutils output a single /, but
> this definition is worthless on platforms (like cygwin) where // is distinct
> from /. The intent, according to POSIX, is that 'cd $(dirname "string")
> && stat $(basename "string")' access the same file as 'stat "string"'
> would do.
Might this also be a problem for mkdir? And perhaps cp?
David