Use only $OSTYPE to detect Cygwin.
--- a/.bashrc Mon Oct 31 12:08:11 2011 +0200
+++ b/.bashrc Mon Oct 31 12:09:19 2011 +0200
@@ -125,12 +125,10 @@
# Special case for CYGWIN to properly display russian letters in rxvt.
# Don't forget set in Windows SHELL=/bin/bash. If default SHELL is sh then .bashrc will not be read.
-if [ -n "$COMSPEC" ]; then
- if [ x$OSTYPE = xcygwin ]; then
- export LANG=ru_RU.CP1251
- # Avoid permission problem in Cygwin.
- umask 0000
- fi
+if [ x$OSTYPE = xcygwin ]; then
+ export LANG=ru_RU.CP1251
+ # Avoid permission problem in Cygwin.
+ umask 0000
fi
export PATH=$PATH:~/usr/bin