This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ssh adds CR under Command Prompt, not under Cygwin bash


Like other people writing to the mailing list, I've had trouble
getting ssh (OpenSSH 3.4p1-1 under 1.3.11) to work with WinCVS because
of the extra CR it is adding to the end of each line received from 
the remote host.

The curious thing is that it does this only in a Command Prompt window, not
under the Cygwin bash.  Example:

    C:\Installers\CYGWIN\bin>ssh -l dfranklin stove.infoplease.com echo foo | cat -v -e -t
    foo^M$

Changing CYGWIN doesn't seem to help:

    C:\Installers\CYGWIN\bin>echo %CYGWIN%
    ntsec tty
    
    C:\Installers\CYGWIN\bin>set CYGWIN=binmode
    
    C:\Installers\CYGWIN\bin>ssh -l dfranklin stove.infoplease.com echo foo | cat -v -e -t
    foo^M$

But other programs in Cygwin don't behave this way (and note that the
CR is not being introduced by M$'s pipe):

    C:\Installers\CYGWIN\bin>ls w* | cat -v -e -t
    wc.exe$
    wget.exe$
    whatis$
    who.exe$
    whoami.exe$
    wrjpgcom.exe$
    
    C:\Installers\CYGWIN\bin>

And ssh doesn't behave this way under bash:

    $ ssh -l dfranklin stove.infoplease.com echo foo | cat -v -e -t
    foo$

    $ echo $CYGWIN
    ntsec tty

Why does ssh behave correctly under bash, but differently from ls under
a Command Prompt window?

BTW, after spending much time trying to get this to work I switched to
using PuTTY's plink with WinCVS.

	Dan Franklin

P.S.Here's the output of cygcheck -s -r -v:

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Jul 01 22:08:40 2002

Windows NT Ver 4.0 Build 1381 Service Pack 6

Path:	C:\WINNT\system32
	C:\WINNT
	C:\putty
	C:\Program Files\Symantec\pcAnywhere\

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

CYGWIN = `binmode'
Path = `C:\WINNT\system32;C:\WINNT;C:\putty;C:\Program Files\Symantec\pcAnywhere\'

COMPUTERNAME = `VORKOSIGAN'
ComSpec = `C:\WINNT\system32\cmd.exe'
HOMEDRIVE = `C:'
HOMEPATH = `\'
LOGONSERVER = `\\VORKOSIGAN'
NUMBER_OF_PROCESSORS = `1'
OS = `Windows_NT'
Os2LibPath = `C:\WINNT\system32\os2\dll;'
PATHEXT = `.COM;.EXE;.BAT;.CMD'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 5 Stepping 2, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0502'
PROMPT = `$P$G'
SystemDrive = `C:'
SystemRoot = `C:\WINNT'
TEMP = `C:\TEMP'
TMP = `C:\TEMP'
USERDOMAIN = `VORKOSIGAN'
USERNAME = `Administrator'
USERPROFILE = `C:\WINNT\Profiles\Administrator'
windir = `C:\WINNT'

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 = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\installers\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\installers\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\installers\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  FAT     4001Mb  83% CP    UN           
d:  cd  CDFS     309Mb 100%    CS UN           MB89

C:\installers\cygwin      /          system  binmode
C:\installers\cygwin/bin  /usr/bin   system  binmode
C:\installers\cygwin/lib  /usr/lib   system  binmode
.                         /cygdrive  user    binmode,cygdrive

Found: .\bash.exe
Found: .\cat.exe
Not Found: cpp (good!)
Found: .\find.exe
Not Found: gcc
Not Found: gdb
Not Found: ld
Found: .\ls.exe
Found: .\make.exe
Found: .\sh.exe

  306k 2002/04/27 .\cyghttpd.dll - os=4.0 img=1.0 sys=4.0
                  "cyghttpd.dll" v0.0 ts=2002/4/27 9:23
   58k 2002/05/07 .\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2002/5/7 2:33
   22k 2001/12/13 .\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 4:28
   45k 2001/04/25 .\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 1:28
   26k 2001/04/25 .\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 1:27
  156k 2001/04/25 .\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 1:29
  226k 2001/04/25 .\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 1:17
   15k 2001/04/25 .\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 1:27
   35k 2002/01/09 .\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 1:03
   20k 2002/01/09 .\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 1:03
  175k 2002/01/09 .\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 1:03
  202k 2002/01/09 .\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 1:03
   12k 2002/01/09 .\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 1:03
  621k 2002/05/17 .\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto.dll" v0.0 ts=2002/5/17 8:24
  156k 2002/05/17 .\cygssl.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl.dll" v0.0 ts=2002/5/17 8:24
   40k 2001/11/21 .\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2001/11/21 17:15
   39k 2001/11/21 .\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2001/11/21 17:15
   50k 2002/03/12 .\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2002/3/11 23:38
  111k 2002/06/13 .\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-2.dll" v0.0 ts=2002/6/13 10:58
   21k 2001/06/20 .\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 13:09
   22k 2002/06/09 .\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 1:45
  119k 2002/02/09 .\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2002/2/9 0:19
  175k 2002/05/24 .\cygpng12.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng12.dll" v0.0 ts=2002/5/23 22:22
  170k 2002/01/21 .\cygpng2.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng2.dll" v0.0 ts=2002/1/20 20:05
  253k 2002/02/10 .\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff3.dll" v0.0 ts=2002/2/10 3:34
  874k 2002/06/24 .\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2002/6/23 22:31
    Cygwin DLL version info:
        DLL version: 1.3.11
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 53
        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: Sun Jun 23 22:31:15 EDT 2002
        CVS tag: cygwin-1-3-11-3
        Shared id: cygwin1S3

  306k 2002/04/27 .\cyghttpd.dll - os=4.0 img=1.0 sys=4.0
                  "cyghttpd.dll" v0.0 ts=2002/4/27 9:23
   58k 2002/05/07 .\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2002/5/7 2:33
   22k 2001/12/13 .\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 4:28
   45k 2001/04/25 .\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 1:28
   26k 2001/04/25 .\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 1:27
  156k 2001/04/25 .\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 1:29
  226k 2001/04/25 .\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 1:17
   15k 2001/04/25 .\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 1:27
   35k 2002/01/09 .\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 1:03
   20k 2002/01/09 .\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 1:03
  175k 2002/01/09 .\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 1:03
  202k 2002/01/09 .\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 1:03
   12k 2002/01/09 .\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 1:03
  621k 2002/05/17 .\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto.dll" v0.0 ts=2002/5/17 8:24
  156k 2002/05/17 .\cygssl.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl.dll" v0.0 ts=2002/5/17 8:24
   40k 2001/11/21 .\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2001/11/21 17:15
   39k 2001/11/21 .\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2001/11/21 17:15
   50k 2002/03/12 .\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2002/3/11 23:38
  111k 2002/06/13 .\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-2.dll" v0.0 ts=2002/6/13 10:58
   21k 2001/06/20 .\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 13:09
   22k 2002/06/09 .\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 1:45
  119k 2002/02/09 .\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2002/2/9 0:19
  175k 2002/05/24 .\cygpng12.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng12.dll" v0.0 ts=2002/5/23 22:22
  170k 2002/01/21 .\cygpng2.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng2.dll" v0.0 ts=2002/1/20 20:05
  253k 2002/02/10 .\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff3.dll" v0.0 ts=2002/2/10 3:34
  874k 2002/06/24 .\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2002/6/23 22:31
    Cygwin DLL version info:
        DLL version: 1.3.11
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 53
        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: Sun Jun 23 22:31:15 EDT 2002
        CVS tag: cygwin-1-3-11-3
        Shared id: cygwin1S3


Cygwin Package Information
Last downloaded files to: C:\WINNT\Profiles\Administrator\Desktop\cygwin-packages
Last downloaded files from: ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin

Package             Version             
_update-info-dir    00012-1             
apache              1.3.24-5            
ash                 20020131-1          
autoconf            2.53a-1             
autoconf-devel      2.53a-1             
autoconf-stable     2.13-4              
automake            1.6.1-1             
automake-devel      1.6.1-3             
automake-stable     1.4p5-5             
bash                2.05a-3             
bc                  1.06-1              
bzip2               1.0.2-2             
cron                3.0.1-6             
crypt               1.0-1               
ctags               5.2-1               
curl                7.9.8-1             
cvs                 1.11.0-1            
cygrunsrv           0.95-1              
cygutils            1.1.1-1             
cygwin              1.3.11-3            
cygwin-doc          1.0-1               
diff                1.0-1               
diffutils           2.8.1-1             
ed                  0.2-1               
fileutils           4.1-1               
findutils           4.1.7-4             
gawk                3.0.4-1             
gdbm                1.8.0-4             
grep                2.5-1               
groff               1.17.2-1            
gzip                1.3.2-1             
indent              2.2.8-1             
jpeg                6b-7                
less                374-1               
libbz2_1            1.0.2-2             
libintl             0.10.38-3           
libintl1            0.10.40-1           
libncurses5         5.2-1               
libncurses6         5.2-8               
libpng              1.2.3-1             
libpng12            1.2.3-1             
libpng2             1.0.12-1            
libpopt0            1.6.4-4             
libreadline4        4.1-2               
libreadline5        4.2a-1              
login               1.4-3               
m4                  0.0                 
make                3.79.1-7            
man                 1.5g-2              
mktemp              1.4-1               
mod_auth_mysql      1.11-1              
mod_auth_ntsec      1.7-1               
mod_dav             1.0.3-1.3.6-1       
mod_php4            4.2.0-1             
mod_ssl             2.8.8-1.3.24-1      
more                2.11o-1             
ncftp               3.1.3-1             
ncurses             5.2-8               
openssh             3.4p1-1             
openssl             0.9.6d-1            
pcre                3.7-1               
perl                5.6.1-2             
popt                1.6.4-4             
rcs                 5.7-3               
readline            4.2a-1              
rsync               2.5.5-1             
sed                 3.02-1              
sh-utils            2.0-2               
sharutils           4.2.1-2             
tar                 1.13.19-1           
tcp_wrappers        7.6-1               
termcap             20020403-1          
terminfo            5.2-3               
texinfo             4.2-3               
textutils           2.0.21-1            
tiff                3.5.7-1             
unzip               5.50-1              
vim                 6.1-2               
w32api              1.5-1               
wget                1.8.1-1             
which               1.5-1               
zip                 2.3-2               
zlib                1.1.4-1             

Use -h to see help about each section

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]