This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Release candidate 1: /etc/hosts

On Thu, 12 Sep 2002, Paul Johnston wrote:

> Hi,
> Thanks to Corinna, Joe, Nicholas, Warren and especially Igor, this
> script should now be good enough. I've successfully tested it on XP
> only.

This works on Windows 98 (sort of):

BASH-2.05b$ uname -a
CYGWIN_98-4.10 FAETON 1.3.12(0.54/3/2) 2002-07-06 02:16 i686 unknown
BASH-2.05b$ ./
create symbolic link `/etc/hosts' to `/cygdrive/c/WINDOWS/hosts'
create symbolic link `/etc/protocols' to `/cygdrive/c/WINDOWS/protocol'
create symbolic link `/etc/services' to `/cygdrive/c/WINDOWS/services'
create symbolic link `/etc/networks' to `/cygdrive/c/WINDOWS/networks'

However, two problems:

1) When the script has run, but created a link to a non-existent file, and
then run again:

BASH-2.05b$ ./
/bin/ln: `/etc/protocols': File exists
BASH-2.05b$ ls /etc/protocols
BASH-2.05b$ [ ! -e /etc/protocols ]; echo $?
BASH-2.05b$ [ ! -L /etc/protocols ]; echo $?

The -e test apparently fails if the file is a symbolic link to a
non-existent file (is this a bug?).  I've attached the correction.

2) CYGWIN="check_case:strict"
As I suspected earlier, this fails -- the links are created, but an
attempt to cat the files results in "no such file or directory", and an
attempt to save the file after editing results in a write error.  On my
Windows 98, cygwin interprets the filenames for c:\windows\hosts, etc, as
all caps.  I don't know how important this is to pursue.
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

It took the computational power of three Commodore 64s to fly to the moon.
It takes a 486 to run Windows 95.  Something is wrong here. -- SC sig file

Description: Text document

Description: Text document

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]