www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/16/08:56:56

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4A0EB810.2060603@byu.net>
Date: Sat, 16 May 2009 06:56:48 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [1.7] Updated: {emacs,emacs-X11,emacs-el}-23.0.92-1
References: <4A0D6E41 DOT 3030108 AT cornell DOT edu> <83hbzlqto1 DOT fsf AT gnu DOT org> <23572106 DOT post AT talk DOT nabble DOT com> <23572349 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <23572349.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Marc Girod on 5/16/2009 4:17 AM:
> 
> Marc Girod wrote:
>> uname -r
>> this gives on 2 installations e.g.:
>> 
>> 1.5.25(0.156/4/2)
>> 1.7.0(0.210/5/3)
>> 
>> $ ./uname -s
>> CYGWIN_NT-6.0
> 

uname -s is wrong (you will get the same answer for two different cygwin
installations on the same underlying Windows, but different answers across
different Windows versions).  But uname -r is reliable.

>>
> Er... maybe you would object that this is part of coreutils,
> and thus not necessarily of every cygwin installation...

Coreutils is part of every cygwin installation, as is every other package
in the Base category (for example, findutils, tar, bash...).  In other
words, there are some programs so essential to a unix-y environment that
you can count on them being present.

But that said, all coreutils' uname(1) does is call uname(2).  So emacs
can reliably use uname(2) (provided by cygwin1.dll) rather than wasting a
fork to call uname(1).

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoOuBAACgkQ84KuGfSFAYCwJQCgk7m39ef9Jp5NiVWgX/4/tfN3
pI8Anjq1G3mIwif/JCu68Iu3BrI2eVWW
=CgBH
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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