delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/13/10:58:00

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 12 Sep 2002 13:11:15 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
cc: Paul Johnston <paj AT pajhome DOT org DOT uk>
Subject: Re: Release candidate 1: /etc/hosts
In-Reply-To: <3D80A15A.D7D2CF13@pajhome.org.uk>
Message-ID: <Pine.GSO.4.44.0209121221240.19696-300000@slinky.cs.nyu.edu>
MIME-Version: 1.0

--------------50E01E77144081DDBE279FD3
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine DOT GSO DOT 4 DOT 44 DOT 0209121221242 DOT 19696 AT slinky DOT cs DOT nyu DOT edu>

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$ ./make-etc-links.sh
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'
BASH-2.05b$

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$ ./make-etc-links.sh
/bin/ln: `/etc/protocols': File exists
BASH-2.05b$ ls /etc/protocols
/etc/protocols
BASH-2.05b$ [ ! -e /etc/protocols ]; echo $?
0
BASH-2.05b$ [ ! -L /etc/protocols ]; echo $?
1
BASH-2.05b$

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.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,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

--------------50E01E77144081DDBE279FD3
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="make-etc-links.sh"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine DOT GSO DOT 4 DOT 44 DOT 0209121311150 DOT 19696 AT slinky DOT cs DOT nyu DOT edu>
Content-Description: 
Content-Disposition: attachment; filename="make-etc-links.sh"

IyEvYmluL3NoDQojLS0NCiMgQ3JlYXRlIHN5bWJvbGljIGxpbmtzIGZyb20g
c29tZSAvZXRjIGZpbGVzIHRvIHRoZSBXaW5kb3dzIGVxdWl2YWxlbnRzDQoj
LS0NCg0KRklMRVM9Imhvc3RzIHByb3RvY29scyBzZXJ2aWNlcyBuZXR3b3Jr
cyINCg0KT1NOQU1FPWAvYmluL3VuYW1lIC1zYA0KV0lOSE9NRT1gL2Jpbi9j
eWdwYXRoIC1XYA0KDQpjYXNlICIkT1NOQU1FIiBpbg0KICBDWUdXSU5fTlQq
KSBXSU5FVEM9IiRXSU5IT01FL3N5c3RlbTMyL2RyaXZlcnMvZXRjIiA7Ow0K
ICBDWUdXSU5fOSp8Q1lHV0lOX01FKikgV0lORVRDPSIkV0lOSE9NRSIgOzsN
CiAgKikgDQogICAgZWNobyAiVW5rbm93biBzeXN0ZW0gdHlwZSAkT1NOQU1F
OyBleGl0aW5nIiA+JjINCiAgICBleGl0IDANCiAgOzsNCmVzYWMNCg0KaWYg
WyAhIC1kICIkV0lORVRDIiBdDQp0aGVuDQogIGVjaG8gIkRpcmVjdG9yeSAk
V0lORVRDIGRvZXMgbm90IGV4aXN0OyBleGl0aW5nIiA+JjINCiAgZXhpdCAw
DQpmaQ0KDQpmb3IgRklMRSBpbiAkRklMRVMNCmRvDQogIGlmIFsgISAtZSAi
L2V0Yy8kRklMRSIgLWEgISAtTCAiL2V0Yy8kRklMRSIgXQ0KICB0aGVuDQog
ICAgIyBXaW5kb3dzIG9ubHkgdXNlcyB0aGUgZmlyc3QgOCBjaGFyYWN0ZXJz
DQogICAgV0ZJTEU9YGV4cHIgc3Vic3RyICIkRklMRSIgMSA4YA0KICAgIC9i
aW4vbG4gLXMgLXYgIiRXSU5FVEMvJFdGSUxFIiAiL2V0Yy8kRklMRSINCiAg
ZmkNCmRvbmUNCg0KDQo=
--------------50E01E77144081DDBE279FD3
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="make-etc-links.sh-0.6-diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine DOT GSO DOT 4 DOT 44 DOT 0209121311151 DOT 19696 AT slinky DOT cs DOT nyu DOT edu>
Content-Description: 
Content-Disposition: attachment; filename="make-etc-links.sh-0.6-diff"

LS0tIG1ha2UtZXRjLWxpbmtzLnNoLTAuNgkyMDAyLTA5LTEyIDEwOjA4OjE3
LjAwMDAwMDAwMCAtMDQwMA0KKysrIG1ha2UtZXRjLWxpbmtzLnNoCTIwMDIt
MDktMTIgMTM6MDU6MDIuMDAwMDAwMDAwIC0wNDAwDQpAQCAtMjUsNyArMjUs
NyBAQCBmaQ0KIA0KIGZvciBGSUxFIGluICRGSUxFUw0KIGRvDQotICBpZiBb
ICEgLWUgIi9ldGMvJEZJTEUiIF0NCisgIGlmIFsgISAtZSAiL2V0Yy8kRklM
RSIgLWEgISAtTCAiL2V0Yy8kRklMRSIgXQ0KICAgdGhlbg0KICAgICAjIFdp
bmRvd3Mgb25seSB1c2VzIHRoZSBmaXJzdCA4IGNoYXJhY3RlcnMNCiAgICAg
V0ZJTEU9YGV4cHIgc3Vic3RyICIkRklMRSIgMSA4YA0K

--------------50E01E77144081DDBE279FD3
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--------------50E01E77144081DDBE279FD3--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019