[Cook] dos-path / un-dos-path is anachronistic

Chuck_Eaker at mapinfo.com Chuck_Eaker at mapinfo.com
Tue Aug 24 12:09:02 EST 2004


Some of us need to pass dosified paths to Win32 and .NET tools such as the
compilers and Visual Studios. It turns out, though, at least in my case,
that they have to go through the Linux shell on the machine that cook is
running on, then through the shell of the remote Win32 machine. This means
that every backslash in a dos path has to be replaced with four backslashes
by cook before the command in which it appears is executed. So, don't mess
with it.

-Chuck Eaker



                                                                           
             John Darrington                                               
             <john at cellform.co                                             
             m.au>                                                      To 
             Sent by:                  cook-users at auug.org.au              
             cook-users-bounce                                          cc 
             s+chuck_eaker=map                                             
             info.com at auug.org                                     Subject 
             .au                       [Cook] dos-path / un-dos-path is    
                                       anachronistic                       
                                                                           
             08/23/2004 09:28                                              
             PM                                                            
                                                                           
                                                                           
                                                                           




>From the users guide:

 [dos-path //c/temp] results in   c:\temp

Presumable this is for compatibility with Cygwin.

But Cygwin doesn't do it that way anymore.

On recent versions, C:\temp becomes /cygdrive/c/temp

And there is a utility (cygpath) which does that conversion for you.

Perhaps cook's dos-path / un-dos-path commands should simply call
cygpath ??


--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://wwwkeys.pgp.net or any PGP keyserver for public key.


(See attached file: att4aih9.dat)
_______________________________________________
Cook-users mailing list
Cook-users at auug.org.au
http://www.auug.org.au/mailman/listinfo/cook-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: att4aih9.dat
Type: application/octet-stream
Size: 196 bytes
Desc: not available
URL: <http://lists.auug.org.au/pipermail/cook-users/attachments/20040823/5113cc96/attachment.obj>


More information about the Cook-users mailing list