X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=BLNljbd+eioG8uIRGUjz4UaEHOUxUidZWCIw4VertcF
	KSmi2SMxYLySd2GDBCFxvekIIF1R7pV5uWBZ2XMmpjFW1HdGnX7JXiI2yP6O1ZbP
	ivC0FUkHkl7PelUIE9+vPMMe17Vt21lybuhkerJo016lCnu8kJJ+HTfKahBtthZM
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=EL1SAtCRZMp6AETTcfHiZ/QPD4A=; b=BqxvfphjsRVNHQr64
	TxXd/yDgxvLk2WpezBLy/hIZRdLtMSuESa3jt70cIlX0Irv1Hqv4+BstgG3mRf6G
	Xn1DNmnv8wr9BLRTgHt4FtUYUTeItrsgIjAD6uFaSQmuXef3Cw4od9etgN9UWoUa
	mdT3p9fsFT+f3IQI4TQ1sqUMTM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD autolearn=ham version=3.3.1
Message-ID: <51AE5A4A.9000009@etr-usa.com>
Date: Tue, 04 Jun 2013 15:21:14 -0600
From: Warren Young <warren@etr-usa.com>
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-Version: 1.0
To: Cygwin-L <cygwin@cygwin.com>
Subject: Re: Mounting ISOs with Cygwin?
References: <20130603222026.GA11213@ns2.sdsitehosting.net>	<51AD1CFA.5050908@cygwin.com>	<CAPF-yOaOFgHrw_1on74E3E0-gcvjtd_ajRnx_S2PuDfH7Ue94g@mail.gmail.com>	<51AD2A47.3070808@etr-usa.com> <CAPF-yOa+e3X7-vyuvYou9gd3f-sOV5NRyusZrH2gEAqVAq43sw@mail.gmail.com>
In-Reply-To: <CAPF-yOa+e3X7-vyuvYou9gd3f-sOV5NRyusZrH2gEAqVAq43sw@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 6/3/2013 17:52, Dan Kegel wrote:
> On Mon, Jun 3, 2013 at 4:44 PM, Warren Young wrote:
>>>> Cygwin != Linux
>>>
>>> /proc/cpuinfo begs to differ :-)
>>
>> $ grep -i linux /proc/cpuinfo | wc -l
>> 0
>
> Wrong test.  I think you were looking for
> $ test -f  /proc/cpuinfo && echo "looks like linux"
>
> See also http://www.sourceware.org/ml/cygwin-patches/2003-q2/msg00054.html

$ test -f /etc/termcap && echo "looks like BSD"

Any single test is likely to confuse software that needs to be portable. 
  This is why, 2 decades ago, the creators of Autoconf popularized the 
practice of testing for individual needed features, not whole platforms.

(You see this in the long output from a "configure" script.  It doesn't 
just say "looks like Linux".)

Cygwin does conform most closely to Linux, but if you write softwares 
that blindly assumes Cygwin *is* Linux, you're likely to get surprised 
at some point.

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

