httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <bri...@kheldar.apana.org.au>
Subject Re: cvs commit: apache-2.0/src/build fastgen.sh
Date Wed, 03 May 2000 03:31:28 GMT
On Wed, 3 May 2000 05:08:01 +0200, Sascha Schumann wrote:

>On Wed, May 03, 2000 at 02:42:19AM -0000, bjh@locus.apache.org wrote:
>> bjh         00/05/02 19:42:18
>> 
>>   Modified:    src/build fastgen.sh
>>   Log:
>>   The 'portable dirname' shouldn't leave a trailing / on the directory name
>>   as it causes double trailing / in some places which confuses some programs.
>
>Two or more slashes in a pathname are per definition equivalent
>to one slash. A pathname referring to a directory can also
>legally have one or more trailing slashes.

Maybe under unix that's true but on non-unix platforms using ports of unix
tools, it's not always dealt with correctly. Specifically, on OS/2, test -d
& mkdir -p both fail to handle the double trailing backslash resulting in a
bunch of errors like:

F:\Apache\apache-2.0\src\build>mkdir -p foobar//
F:\EMX\BIN\mkdir.exe: cannot create directory `foobar//': No such file or
directory

when creating the Makefiles.

Oh, and the real dirname doesn't leave a trailing backslash either.

-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------


Mime
View raw message