From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31409 invoked by alias); 11 Sep 2002 22:58:06 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 31401 invoked from network); 11 Sep 2002 22:58:05 -0000 Received: from unknown (HELO slinky.cs.nyu.edu) (128.122.20.14) by sources.redhat.com with SMTP; 11 Sep 2002 22:58:05 -0000 Received: from localhost (pechtcha@localhost) by slinky.cs.nyu.edu (8.11.6+Sun/8.11.6) with ESMTP id g8BMvwv17867; Wed, 11 Sep 2002 18:57:58 -0400 (EDT) X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Wed, 11 Sep 2002 16:15:00 -0000 From: Igor Pechtchanski Reply-To: cygwin@cygwin.com To: Paul Johnston cc: cygwin@cygwin.com Subject: Re: Beginnings of a patch: /etc/hosts In-Reply-To: <3D7FC73B.5F877492@pajhome.org.uk> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1141662977-1031785078=:1269" X-SW-Source: 2002-09/txt/msg00564.txt.bz2 ---559023410-1141662977-1031785078=:1269 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-length: 1377 On Wed, 11 Sep 2002, Paul Johnston wrote: > > No, I'm not. I'm incorporating Warren Young's suggestion. Unless someone > > with ME can confirm that 'uname -s' returns CYGWIN_9*? Nicholas? > > To me that's a step backwards - uname -s or $OS are the correct ways to > detect the operating system. Warren's approach would be fooled if a user > defined $SYSTEMROOT on Win 9x. Win 9x does not set $OS... At least my Win 98 machine at home doesn't. Besides, the user can always set $OS to fool the script, by the same token. I'd prefer 'uname -s'. Pending confirmation from someone with Win ME... > Nit picks... FILES=... should probably go nearer the top Agreed. > On reflection, I think we'll always want it verbose, so we could lose > $VERBOSE Probably. In which case we should also print messages if the OS is not detected or $WINETC is not found... > That's gotta be it... in principle this is a very simple script! Ok, one more iteration (script attached)... Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.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 ---559023410-1141662977-1031785078=:1269 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="make-etc-links.sh" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="make-etc-links.sh" Content-length: 2188 IyEvYmluL3NoDQojLS0NCiMgQ3JlYXRlcyBzeW1ib2xpYyBsaW5rcyBmcm9t IHNvbWUgL2V0YyBmaWxlcyB0byB0aGVpciB3aW5kb3dzIGVxdWl2YWxlbnRz DQojDQojIFZlcnNpb246IDAuNQ0KIw0KIyBDaGFuZ2VMb2c6DQojICAgIHYw LjUgSWdvciBQZWNodGNoYW5za2kgPHBlY2h0Y2hhIGF0IGNzLm55dS5lZHU+ Og0KIyAgICAgICBNb3ZlIEZJTEVTIHRvIHRvcDsgcmVtb3ZlZCBWRVJCT1NF ICh0aHggUGF1bCBKb2huc3RvbikNCiMgICAgICAgUHJpbnQgbWVzc2FnZXMg b24gYWJub3JtYWwgZXhpdA0KIyAgICB2MC40IElnb3IgUGVjaHRjaGFuc2tp IDxwZWNodGNoYSBhdCBjcy5ueXUuZWR1PjoNCiMgICAgICAgVXNlICRTWVNU RU1ST09UIGFuZCAkV0lORElSIHRvIGRldGVybWluZSB0aGUgT1MgKHRoeCBX YXJyZW4gWW91bmcpDQojICAgICAgIENoZWNrIGZvciBleGlzdGVuY2Ugb2Yg JFdJTkVUQyBkaXJlY3RvcnkgKHRoeCBQYXVsIEpvaG5zdG9uKQ0KIyAgICAg ICBVc2UgYGV4cHIgc3Vic3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0lORVRDIiBdDQp0aGVuDQogIGVjaG8gIkRpcmVjdG9y eSAkV0lORVRDIGRvZXMgbm90IGV4aXN0OyBleGl0aW5nIiA+JjINCiAgZXhp dCAwDQpmaQ0KDQpmb3IgRklMRSBpbiAkRklMRVMNCmRvDQogIGlmIFsgISAt ZSAiL2V0Yy8kRklMRSIgXQ0KICB0aGVuDQogICAgIyBXaW5kb3dzIG9ubHkg dXNlcyB0aGUgZmlyc3QgOCBjaGFyYWN0ZXJzDQogICAgV0ZJTEU9YGV4cHIg c3Vic3RyICIkRklMRSIgMSA4YA0KICAgIC9iaW4vbG4gLXMgLXYgIiRXSU5F VEMvJFdGSUxFIiAiL2V0Yy8kRklMRSINCiAgZmkNCmRvbmUNCg0K ---559023410-1141662977-1031785078=:1269 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="make-etc-links.sh-0.5-diff" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="make-etc-links.sh-0.5-diff" Content-length: 1802 LS0tIG1ha2UtZXRjLWxpbmtzLnNoLW9yaWcJMjAwMi0wOS0xMSAxODowODoz OS4wMDAwMDAwMDAgLTA0MDANCisrKyBtYWtlLWV0Yy1saW5rcy5zaAkyMDAy LTA5LTExIDE4OjU3OjAxLjAwMDAwMDAwMCAtMDQwMA0KQEAgLTIsOSArMiwx MiBAQA0KICMtLQ0KICMgQ3JlYXRlcyBzeW1ib2xpYyBsaW5rcyBmcm9tIHNv bWUgL2V0YyBmaWxlcyB0byB0aGVpciB3aW5kb3dzIGVxdWl2YWxlbnRzDQog Iw0KLSMgVmVyc2lvbjogMC40DQorIyBWZXJzaW9uOiAwLjUNCiAjDQogIyBD aGFuZ2VMb2c6DQorIyAgICB2MC41IElnb3IgUGVjaHRjaGFuc2tpIDxwZWNo dGNoYSBhdCBjcy5ueXUuZWR1PjoNCisjICAgICAgIE1vdmUgRklMRVMgdG8g dG9wOyByZW1vdmVkIFZFUkJPU0UgKHRoeCBQYXVsIEpvaG5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ANCi0gICAgL2Jpbi9s biAtcyAkVkVSQk9TRSAiJFdJTkVUQy8kV0ZJTEUiICIvZXRjLyRGSUxFIg0K KyAgICAvYmluL2xuIC1zIC12ICIkV0lORVRDLyRXRklMRSIgIi9ldGMvJEZJ TEUiDQogICBmaQ0KIGRvbmUNCiANCg== ---559023410-1141662977-1031785078=:1269 Content-Type: text/plain; charset=us-ascii Content-length: 214 -- 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/ ---559023410-1141662977-1031785078=:1269--