wrong detection of inUnix ?? [Re: [fpc-devel] fcl-WEB build broken]

Ralf A. Quint FreeDOS at gmx.net
Sat Jun 11 00:26:30 CEST 2011

At 02:51 PM 6/10/2011, Martin wrote:
>On 10/06/2011 22:31, Jonas Maebe wrote:
>>>This happened during a full make (after a full "make clean")
>>>So both compiler and rtl should have been build, before packages? 
>>>fcl-web is then probably just the first package....
>>fcl-web is the only package that currently uses fpmake for building.
>>>btw: isn't ";" a valid char in a unix pathname?
>>Yes, but it's quite rare. It's simply the best way we have found to 
>>detect Unix environments via the Makefile. A better way is always welcome.
>I am no expert at this, but for example a "/" is not allowed in 
>windows filenames (so it should not be in windows path at all.

Sorry, but you're wrong. Windows (actually since the days of DOS) 
happily accepts a forward slash in a path:
 >Microsoft Windows XP [Version 5.1.2600]
 >(C) Copyright 1985-2001 Microsoft Corp.
 >C:\Documents and Settings\Ralf>cd /windows
 >C:\Documents and Settings\Ralf\WINDOWS>

Just did the above in a DOS shell on Windows XPSP3. And I just tested 
this on Windows 7 Pro as well, with the same basic result. 
Internally, all path related functions of Windows allow AFAIK both 
forward and backwards slashes, it's just the GUI that doesn't allow 
you to enter the forward slash...


More information about the fpc-devel mailing list