Also, it would be useful to know if vim works for you if you> login to Windows and use cygwin.bat instead.
* If I run cygwin.bat directly from Start/Run..., it works fine. (I mean I can start vim, exit, and echo is OK). (I don't have CYGWIN or TERM set in the native Windows system or user environment)
* If I start a "CMD" shell, do "set CYGWIN=tty" and then start bash, and from within bash, run vim, again it's OK (by above defn.)
* However, if I start CMD, and within it, directly run as one command "env CYGWIN=tty bash", then when I exit vim, bash's echo is turned off.
I suspect this last emulates the setup when login forks off bash (but sorry, pure wild-assed guess here).
Cygcheck output attached.
Cygwin Win95/NT Configuration Diagnostics Current System Time: Tue Jun 10 15:54:22 2003
Windows XP Professional Ver 5.1 Build 2600 Service Pack 1 Path: c:/ant/bin c:/mysql/bin c:/Program Files/Microsoft Office/Office10 C:/Apps/bin C:/Apps/emacs-21.2/bin C:/ant/bin C:/java/bin C:/cygwin/bin c:/Program Files/Microsoft Visual Studio .NET/Vc7/bin C:/oracle/ora81/bin C:/oracle/ora81/Apache/Perl/5.00503/bin/mswin32-x86 C:/Program Files/Oracle/jre/1.1.7/bin C:/WINDOWS/system32 C:/WINDOWS C:/WINDOWS/System32/Wbem C:/Program Files/Common Files/Adaptec Shared/System C:\cygwin\bin\id.exe output (nontsec) UID: 1005(shankar) GID: 513(None) 513(None) C:\cygwin\bin\id.exe output (ntsec) UID: 1005(shankar) GID: 513(None) 513(None) 544(Administrators) 545(Users) SysDir: C:\WINDOWS\System32 WinDir: C:\WINDOWS HOME = `C:/Shankar' PWD = `C:/Shankar' USER = `shankar' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\shankar\Application Data' CLIENTNAME = `Console' CommonProgramFiles = `C:\Program Files\Common Files' COMPUTERNAME = `HQ-SHANKAR' ComSpec = `C:\WINDOWS\system32\cmd.exe' DEVMGR_SHOW_DETAILS = `1' EDITOR = `gnuclient' ENSCRIPT_LIBRARY = `C:/Apps/enscript' GROUP = `unknown' HOMEDRIVE = `C:' HOMEPATH = `\Documents and Settings\shankar' HOST = `HQ-SHANKAR' HOSTTYPE = `Windows 2000 5.1 Build 2600 (Service Pack 1)' JAVA_HOME = `C:\java' LESS = `-eimq~X' LOGNAME = `shankar' LOGONSERVER = `\\HQ-SHANKAR' MACHTYPE = `i386' NIGHTLY_BUILD = `1' NOREBIND = `1' NUMBER_OF_PROCESSORS = `1' OS = `Windows_NT' OSTYPE = `Windows2000' P4EDITOR = `gnuclient' PAGER = `less' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 7, GenuineIntel' PROCESSOR_LEVEL = `15' PROCESSOR_REVISION = `0207' ProgramFiles = `C:\Program Files' SESSIONNAME = `Console' SHLVL = `1' SQLPATH = `c:/temp/sql;d:/orant/dbs' SYSPATH = `C:/Apps/bin;C:/Apps/emacs-21.2/bin;C:/ant/bin;C:/java/bin;C:/cygwin/bin;c:/Program Files/Microsoft Visual Studio .NET/Vc7/bin;C:/oracle/ora81/bin;C:/oracle/ora81/Apache/Perl/5.00503/bin/mswin32-x86;C:/Program Files/Oracle/jre/1.1.7/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;C:/Program Files/Common Files/Adaptec Shared/System' SystemDrive = `C:' SystemRoot = `C:\WINDOWS' TEMP = `C:\Temp' TMP = `C:\Temp' TMPDIR = `c:/temp' USERDOMAIN = `HQ-SHANKAR' USERNAME = `shankar' USERPROFILE = `C:\Documents and Settings\shankar' VENDOR = `Microsoft' VISUAL = `gnuclient' windir = `C:\WINDOWS' WV_GATEWAY_CFG = `C:\oracle\ora81\Apache\modplsql\cfg\wdbsvr.app' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x00000020 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib' flags = 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options c: hd NTFS 28576Mb 63% CP CS UN PA FC d: cd N/A N/A C:\cygwin / system textmode C:\cygwin/bin /usr/bin system textmode C:\cygwin/lib /usr/lib system textmode . /cygdrive system textmode,cygdrive Found: C:/cygwin/bin\awk.exe Found: C:/cygwin/bin\bash.exe Found: C:/cygwin/bin\cat.exe Found: C:/cygwin/bin\cp.exe Found: C:/cygwin/bin\cpp.exe Found: C:/cygwin/bin\find.exe Found: C:/WINDOWS/system32\find.exe Warning: C:/cygwin/bin\find.exe hides C:/WINDOWS/system32\find.exe Found: C:/cygwin/bin\gcc.exe Found: C:/cygwin/bin\gdb.exe Found: C:/cygwin/bin\grep.exe Found: C:/cygwin/bin\ld.exe Found: C:/cygwin/bin\ls.exe Found: C:/cygwin/bin\make.exe Found: C:/cygwin/bin\mv.exe Found: C:/cygwin/bin\rm.exe Found: C:/cygwin/bin\sed.exe Found: C:/cygwin/bin\sh.exe Found: \bin\sh.exe Warning: C:/cygwin/bin\sh.exe hides \bin\sh.exe Found: C:/cygwin/bin\tar.exe 58k 2002/05/07 C:/cygwin/bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0 "cygbz2-1.dll" v0.0 ts=2002/5/6 23:33 848k 2003/04/11 C:/cygwin/bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto-0.9.7.dll" v0.0 ts=2003/4/11 3:33 645k 2003/04/11 C:/cygwin/bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto.dll" v0.0 ts=2003/4/11 3:37 551k 2003/04/02 C:/cygwin/bin\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0 "cygcurl-2.dll" v0.0 ts=2003/4/2 13:09 380k 2002/07/24 C:/cygwin/bin\cygdb-3.1.dll - os=4.0 img=1.0 sys=4.0 "cygdb-3.1.dll" v0.0 ts=2002/7/24 9:24 487k 2002/07/24 C:/cygwin/bin\cygdb_cxx-3.1.dll - os=4.0 img=1.0 sys=4.0 "cygdb_cxx-3.1.dll" v0.0 ts=2002/7/24 9:25 45k 2001/04/25 C:/cygwin/bin\cygform5.dll - os=4.0 img=1.0 sys=4.0 "cygform5.dll" v0.0 ts=2001/4/24 22:28 35k 2002/01/09 C:/cygwin/bin\cygform6.dll - os=4.0 img=1.0 sys=4.0 "cygform6.dll" v0.0 ts=2002/1/8 22:03 76k 2003/03/09 C:/cygwin/bin\cygform7.dll - os=4.0 img=1.0 sys=4.0 "cygform7.dll" v0.0 ts=2003/3/9 12:51 28k 2003/03/22 C:/cygwin/bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm-3.dll" v0.0 ts=2003/3/22 14:19 19k 2003/03/22 C:/cygwin/bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm.dll" v0.0 ts=2002/2/19 19:05 15k 2003/03/22 C:/cygwin/bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm_compat-3.dll" v0.0 ts=2003/3/22 14:22 17k 2001/06/28 C:/cygwin/bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0 "cyghistory4.dll" v0.0 ts=2001/1/6 20:34 20k 2002/10/10 C:/cygwin/bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0 "cyghistory5.dll" v0.0 ts=2002/10/10 10:28 929k 2002/06/24 C:/cygwin/bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0 "cygiconv-2.dll" v0.0 ts=2002/6/24 11:24 22k 2001/12/13 C:/cygwin/bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0 "cygintl-1.dll" v0.0 ts=2001/12/13 1:28 28k 2002/09/20 C:/cygwin/bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0 "cygintl-2.dll" v0.0 ts=2002/9/19 20:13 21k 2001/06/20 C:/cygwin/bin\cygintl.dll - os=4.0 img=1.0 sys=4.0 "cygintl.dll" v0.0 ts=2001/6/20 10:09 119k 2002/02/09 C:/cygwin/bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0 "cygjpeg6b.dll" v0.0 ts=2002/2/8 21:19 32k 2003/04/16 C:/cygwin/bin\cygltdl-3.dll - os=4.0 img=1.0 sys=4.0 "cygltdl-3.dll" v0.0 ts=2003/4/15 18:41 26k 2001/04/25 C:/cygwin/bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0 "cygmenu5.dll" v0.0 ts=2001/4/24 22:27 20k 2002/01/09 C:/cygwin/bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0 "cygmenu6.dll" v0.0 ts=2002/1/8 22:03 48k 2003/03/09 C:/cygwin/bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0 "cygmenu7.dll" v0.0 ts=2003/3/9 12:51 156k 2001/04/25 C:/cygwin/bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++5.dll" v0.0 ts=2001/4/24 22:29 175k 2002/01/09 C:/cygwin/bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++6.dll" v0.0 ts=2002/1/8 22:03 226k 2001/04/25 C:/cygwin/bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses5.dll" v0.0 ts=2001/4/24 22:17 202k 2002/01/09 C:/cygwin/bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses6.dll" v0.0 ts=2002/1/8 22:03 284k 2003/03/09 C:/cygwin/bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0 "cygncurses7.dll" v0.0 ts=2003/3/9 12:50 15k 2001/04/25 C:/cygwin/bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0 "cygpanel5.dll" v0.0 ts=2001/4/24 22:27 12k 2002/01/09 C:/cygwin/bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0 "cygpanel6.dll" v0.0 ts=2002/1/8 22:03 31k 2003/03/09 C:/cygwin/bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0 "cygpanel7.dll" v0.0 ts=2003/3/9 12:50 63k 2003/04/11 C:/cygwin/bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0 "cygpcre.dll" v0.0 ts=2003/4/11 1:31 61k 2003/04/11 C:/cygwin/bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix.dll" v0.0 ts=2003/4/11 1:31 1069k 2003/06/02 C:/cygwin/bin\cygperl5_8_0.dll - os=4.0 img=1.0 sys=4.0 "cygperl5_8_0.dll" v0.0 ts=2003/6/2 5:01 173k 2003/02/23 C:/cygwin/bin\cygpng12.dll - os=4.0 img=1.0 sys=4.0 "cygpng12.dll" v0.0 ts=2003/2/23 14:02 22k 2002/06/09 C:/cygwin/bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0 "cygpopt-0.dll" v0.0 ts=2002/6/8 22:45 108k 2001/06/28 C:/cygwin/bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0 "cygreadline4.dll" v0.0 ts=2001/1/6 20:34 127k 2002/10/10 C:/cygwin/bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0 "cygreadline5.dll" v0.0 ts=2002/10/10 10:28 66k 2001/11/20 C:/cygwin/bin\cygregex.dll - os=4.0 img=1.0 sys=4.0 "cygregex.dll" v0.0 ts=2001/11/20 6:44 176k 2003/04/11 C:/cygwin/bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0 "cygssl-0.9.7.dll" v0.0 ts=2003/4/11 3:33 165k 2003/04/11 C:/cygwin/bin\cygssl.dll - os=4.0 img=1.0 sys=4.0 "cygssl.dll" v0.0 ts=2003/4/11 3:37 281k 2003/02/24 C:/cygwin/bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0 "cygtiff3.dll" v0.0 ts=2003/2/23 20:58 25k 2002/07/14 C:/cygwin/bin\cygungif-4.dll - os=4.0 img=1.0 sys=4.0 "cygungif-4.dll" v0.0 ts=2002/7/14 7:58 601k 2003/05/19 C:/cygwin/bin\cygwin-ruby16.dll - os=4.0 img=1.0 sys=4.0 "cygwin-ruby16.dll" v0.0 ts=2003/5/19 4:27 41k 2002/01/20 C:/cygwin/bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0 "cygXpm-noX4.dll" v0.0 ts=2002/1/20 10:49 46k 2002/01/20 C:/cygwin/bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0 "cygXpm-X4.dll" v0.0 ts=2002/1/20 10:50 50k 2002/03/12 C:/cygwin/bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2002/3/11 20:38 948k 2003/03/18 C:/cygwin/bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2003/3/18 6:20 Cygwin DLL version info: DLL version: 1.3.22 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 78 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Tue Mar 18 09:20:11 EST 2003 CVS tag: dontuse-21 Shared id: cygwin1S3 Cygwin Package Information Last downloaded files to: C:\Downloads\cygwin Last downloaded files from: http://ftp.lug.udel.edu/pub/cygwin Package Version _update-info-dir 00167-1 ash 20020731-1 autoconf 2.54-1 autoconf-devel 2.57-1 autoconf-stable 2.13-4 automake 1.7.1-1 automake-devel 1.7.3-1 automake-stable 1.4p5-5 base-files 1.3-1 base-passwd 1.1-1 bash 2.05b-9 bc 1.06-1 binutils 20030307-1 bison 20030307-1 byacc 1.9-1 bzip2 1.0.2-2 clear 1.0-1 cmake 1.6.7-1 cpio 2.5-1 cron 3.0.1-9 crypt 1.0-1 ctags 5.5-4 curl 7.10.4-1 cvs 1.11.5-1 cygrunsrv 0.96-1 cygutils 1.1.3-1 cygwin 1.3.22-1 cygwin-doc 1.3-4 diff 1.0-1 diffutils 2.8.1-1 ed 0.2-1 expect 20030128-1 fetchmail 6.2.2-1 file 4.02-1 fileutils 4.1-1 findutils 4.1.7-4 flex 2.5.4-2 gawk 3.1.2-2 gcc 3.2-3 gcc-mingw 20020817-5 gdb 20030303-1 gdbm 1.8.3-1 gnupg 1.2.2-1 gperf 2.7.2-1 grep 2.5-1 groff 1.18.1-2 gzip 1.3.3-4 indent 2.2.8-1 inetutils 1.3.2-22 jpeg 6b-7 keychain 1.9-1 less 378-1 libbz2_1 1.0.2-2 libdb3.1 3.1.17-2 libgdbm 1.8.0-5 libgdbm-devel 1.8.3-1 libgdbm3 1.8.3-1 libiconv2 1.8-2 libintl 0.10.38-3 libintl1 0.10.40-1 libintl2 0.11.5-1 libltdl3 1.5-1 libncurses-devel 5.3-1 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-1 libpcre 4.1-1 libpcre0 4.2-1 libpng12 1.2.5-1 libpng12-devel 1.2.5-1 libpopt0 1.6.4-4 libreadline4 4.1-2 libreadline5 4.3-2 libtool 20020705-1 libtool-devel 1.5-1 libtool-stable 1.4.3-1 libungif 4.1.0-2 links 0.96-1 login 1.8-1 lynx 2.8.4-5 m4 1.4-1 make 3.79.1-7 man 1.5j-2 mc 4.6.0-3 mingw-runtime 3.0-1 mktemp 1.4-1 more 2.11o-1 mutt 1.4-1 nano 1.2.0-1 nasm 0.98.36-1 ncftp 3.1.4-1 ncurses 5.3-1 netcat 1.10-1 newlib-man 20020801 openssh 3.6.1p1-2 openssl 0.9.7b-1 openssl096 0.9.6j-1 patch 2.5.8-3 patchutils 0.2.22-1 pcre 4.2-1 pcre-devel 4.2-1 pcre-doc 4.2-1 pdksh 5.2.14-2 perl 5.8.0-3 perl_manpages 5.8.0-3 pinfo 0.6.6p1-1 pkgconfig 0.15.0-1 popt 1.6.4-4 procmail 3.22-7 procps 010801-2 proftpd 1.2.9rc1-2 python 2.2.2-7 rcs 5.7-3 readline 4.3-2 rebase 2.2-2 regex 4.4-2 rsync 2.5.6-1 ruby 1.6.8-2 rxvt 2.7.10-3 sed 4.0.7-1 sh-utils 2.0.15-3 sharutils 4.2.1-2 shutdown 1.3-1 ssmtp 2.38.7-3 tar 1.13.25-1 tcltk 20030214-1 tcp_wrappers 7.6-1 tcsh 6.12.00-5 termcap 20020930-1 terminfo 5.3-2 texinfo 4.2-4 textutils 2.0.21-1 tidy 030201-1 tiff 3.6.0-1 time 1.7-1 units 1.77-1 unzip 5.50-2 vim 6.2-1 w32api 2.3-1 wget 1.8.2-2 which 1.5-1 whois 4.6.2-1 xpm-nox 4.2.0-1 zip 2.3-2 zlib 1.1.4-1 zsh 4.0.6-5 Use -h to see help about each section
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/