newbie question -- problem with launching shell script files

Alexey Illarionov
Wed Oct 3 04:53:00 GMT 2007


I have just installed cygwin using setup.exe and know almost nothing
about it. I made no changes in any configuration files and launch my
cygwin session just by starting the unchanged 'cygwin.bat' file.

I wrote a small script. Here is the content of the ''

cd /cygdrive/c

Unfortunately, it does not work. The command './' does nothing.
I found in FAQ that the problem is not new, but I'm not sure that I
understand correctly the way to overcome it. There are two possible
sources of this problem as it is wrote in FAQ.
1. Bash does not understand that it is executable file. This should be
fixed by first line of my script '#!/bin/sh'
2. Some problems with chmod. I don't really understand what I should
do in this case, but it looks like this is not the case because 'chmod
+x' works fine.

I would really appreciate if anyone could help to deal with this problem.

Best regards, Alexey A. Illarionov

Best regards, Alexey A. Illarionov

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list