[fpc-devel] ExtractFileDrive is broken under Linux

Graeme Geldenhuys graemeg.lists at gmail.com
Wed May 21 13:17:48 CEST 2008


Michael Van Canneyt wrote:
> That depends entirely on your point of view. Linux knows no drive letters.
> ':' is a valid character in a filename, and therefor cannot act as a drive
> separator character.

hehehe... To really screw with a Windows user, I tried the following and 
it worked!

touch 'c:\myfile.txt'

Under linux it actually create the file called 'c:\myfile.txt'

:/tmp$ ls -l
drwxr-xr-x 3 graemeg graemeg 4096 2008-05-21 11:43 app
-rw-r--r-- 1 graemeg graemeg    0 2008-05-21 13:14 c:\myfile.txt
-rw-r--r-- 1 graemeg graemeg    0 2008-05-21 13:12 c:myfile.txt
-rw------- 1 graemeg graemeg  607 2008-05-21 11:48 code-1.pp
-rw------- 1 graemeg graemeg  607 2008-05-21 11:48 code.pp


That's nuts!  :-)


Regards,
   - Graeme -


_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/





More information about the fpc-devel mailing list