Remove Cygwin Path for Called Batch Script

Scott Wegner swegner@hdfgroup.org
Tue Mar 25 13:29:00 GMT 2008


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/



More information about the Cygwin mailing list