delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/25/09:58:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,TW_NX
X-Spam-Check-By: sourceware.org
Message-ID: <4BFBD78F.8020402@bopp.net>
Date: Tue, 25 May 2010 08:58:39 -0500
From: Jeremy Bopp <jeremy AT bopp DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Executing bash script in cygwin to test correctness ?
References: <D24592522799DC49BEC35AAA2F5BF0BF5466470AE5 AT GVW1120EXC DOT americas DOT hpqcorp DOT net>
In-Reply-To: <D24592522799DC49BEC35AAA2F5BF0BF5466470AE5@GVW1120EXC.americas.hpqcorp.net>
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

On 5/25/2010 6:21 AM, Dhondt, Edwin wrote:
> Can I use cygwin to test whether a bash script is correct and therefore whether it will function on the eventual real target "unix" production platform ?
> E.g. (see below),  I've got a configuration file and a shell script (that's referencing the configuration file).
> Will I be able to execute the xyz.sh script in cygwin on WinXP without having to change the filepath of the X_DIR variable ?
> That is will I be able to use cygwin on winxp to fully test the script so that I'm sure it will run without any problems on the eventual real target unix platform ?

In general, no, you cannot test something on Cygwin and expect it to run
flawlessly on any other platform, but that's generally true of any
environment.  There are always differences between environments which
may or may not have an effect on the validity of your results.  Maybe
those differences won't affect your script's operation, but you'll need
understand how Cygwin differs from your target environment in order to
make that call.

The example you provided looks like it should work under Cygwin, but
you'll only *really* know if it works in your target environment by
testing it there.

-Jeremy

--
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

- Raw text -


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