On 2008-03-25 13:30Z, Scott Wegner wrote:
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.
If you write
%SystemRoot%\system32\find
in the batch file, then you'll get the msw "find" whether or not
any Cygwin directory is on your path.