[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV Why use `cp' and `rm' when _WINDOWS defined?
From: |
T.E.Dickey |
Subject: |
Re: LYNX-DEV Why use `cp' and `rm' when _WINDOWS defined? |
Date: |
Sun, 15 Mar 1998 07:18:05 -0500 (EST) |
>
> I know the developers are all sitting on their hands with nothing
> special to do with their time, so I thought up something for them
> to add to lynx:
>
> When _WINDOWS is defined src/GlobalDefs.h cleverly defines paths
> to things like `cp', `rm', etc. Which is fine, if all users have
> Dos versions of these programs. You run into a little trouble
> when the user has the cygwin system mounted, and things like
> cp.exe and rm.exe, which assume Unix file names, are on the Windows
> PATH. Do you know what happens when Windows' lynx calls `cp.exe',
> giving it a Windows file path, (well, not, quite,
> `C:\windows\temp/897532.html' isn't exactly what the developers
> mean when DOSPATH is defined in lynx)? (Sorry for the nested
> question.)
that works for some libraries but not others (it's best to process the
name into a single format; however we've got a lot of inline code devoted
to hacking on pathnames - that should be restructured so it's done in fewer
places)
--
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey