www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <47E8FE86.9020405@hdfgroup.org> |
Date: | Tue, 25 Mar 2008 08:30:46 -0500 |
From: | Scott Wegner <swegner AT hdfgroup DOT org> |
User-Agent: | Thunderbird 2.0.0.12 (Windows/20080213) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Remove Cygwin Path for Called Batch Script |
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 |
Hello, I am trying to create a "wrapper" Cygwin bash script to add functionality to an existing Windows batch script. In my Cygwin script, I would like to call the batch file with something like: ... cmd.exe /k batch-script.bat params ... Calling the script in this fashion seems to generally work (in that the script executes). However, I have trouble because the Cygwin path is prepended to the Windows path in the batch script. As a result, trying to use the Windows "find" use Cygwin's instead. My question is, whether there is a way to easily strip the Cygwin entries from the path for the batch call. Hopefully the solution would be portable, and not affect the environment outside of the bash script. Thanks, Scott Wegner -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |