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 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: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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