I am using Emacs 23.1 with Cygwin but when I try to exit by pressing C-x C-c it says C-x C-g is undefined and I am not able to exit.
This problem can be fixed by inserting the following line in file
before the line with
bash --login -i:
set CYGWIN=tty notitle glob
Cygwin.bat is in the root of the Cygwin installation and
is also the file that there is a shortcut to in menu Start/Programs/Cygwin.
The shortcut may be named
Cygwin Bash Shell.
I have tested it and my version of the
Cygwin.bat file now contains:
@echo off e: chdir e:\cygwin171\bin set CYGWIN=tty notitle glob bash --login -i