Link to home
Start Free TrialLog in
Avatar of william007
william007

asked on

Cygwin - 'bash' is not recognized as an internal or external command,

I have installed the cygwin in Win XP Pro. When I tried to run the cygwin at C:\cygwin\cygwin.bat, I get the following error:

'bash' is not recognized as an internal or external command,
operable program or batch file.

When I open the cygwin.bat file, the contents is as followed:
@echo off

C:
chdir C:\cygwin\bin

bash --login -i

What is the problem and how to correct it?
ASKER CERTIFIED SOLUTION
Avatar of edkim80
edkim80

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of william007
william007

ASKER

The file c:\cygwin\bin\bash.exe is not there...I got the zip files from a friend, and when I unzip it says the zip file is corrupted. I will try to redownload the whole things and install. Will feedback the result here after that.
I think the reason can be I choose the wrong folder as local folder.
When I choose the correct folder, it will prompt me that some of the file is missing(may due to some file can't be extracted, since the zip file is corrupted).
Thanks, now i worked:)
Typo...

Thanks, now *it* worked:) (I have just finished the installation)