public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Carriage return
@ 1999-10-03 22:18 Peter Kovacs
  1999-10-31 19:54 ` Peter Kovacs
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Kovacs @ 1999-10-03 22:18 UTC (permalink / raw)
  To: cygwin

Hello,

Please, could someone help me find out why the function upath2dpath
consistently gives back carriage return characters, while the "CR-test"
proposed earlier in this group seems to be passed. (The function works
without problem on my machine at work. Another difference between the
behavior of the two Cygwin installation, which might be of interest in
this regard, is that on the machine where "upath2dpath" does not work as
I expect I also have to give the "-i" switch to force bash to read
"~/.bashrc".)

Thanks a lot in advance.

Peter

/WINNT/Profiles/kope/Desktop$ echo -n `hostname` | od -c
0000000   c   a   m   o   x
0000005

/WINNT/Profiles/kope/Desktop$ cygcheck -s -v

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Mon Oct 04 05:05:25 1999

WinNT Ver 4.0 build 1381 Service Pack 5

Path: /cygnus/CYGWIN~1/H-I586~1/bin
 /VERSANT/JVI/2_2_3/lib/5.2.1/2p
 /Inprise/vbroker/bin
 /jdk1.2.2/bin
 //d/emacs/bin
 /Perl/bin
 //d/data/bin
 /WINNT/system32
 /WINNT/
 /VERSANT/5_2_1/NT/bin
 .

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

HOME = `//D/data/home'
MAKE_MODE = `UNIX'
PWD = `/WINNT/Profiles/kope/Desktop'

!C: = `C:\WINNT\Profiles\kope\Desktop'
CLASSPATH =
`C:\VERSANT\JVI\2_2_3\lib\jvi2.2.3-jdk1.2.jar;C:\VERSANT\JVI\2_2_3\lib\jgl3.0.0.jar;C:\VERSANT\JVI\2_2_3\lib\oromatcher1.1.jar;C:\VERSANT\JVI\2_2_3\lib\jtaxa0.9.jar'

COMPUTERNAME = `CAMOX'
COMSPEC = `C:\WINNT\system32\cmd.exe'
HISTFILE = `d:/data/home/.bash_history'
HOMEDRIVE = `C:'
HOMEPATH = `\'
HOSTNAME = `camox'
HOSTTYPE = `i586'
INCLUDE = `C:\Program Files\Microsoft Visual
Studio\VC98\atl\include;C:\Program Files\Microsoft Visual
Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual
Studio\VC98\include'
JVI_CLASSPATH =
`C:\VERSANT\JVI\2_2_3\lib\jvi2.2.3-jdk1.2.jar;C:\VERSANT\JVI\2_2_3\lib\jgl3.0.0.jar;C:\VERSANT\JVI\2_2_3\lib\oromatcher1.1.jar;C:\VERSANT\JVI\2_2_3\lib\jtaxa0.9.jar'

JVI_PATH = `C:\VERSANT\JVI\2_2_3\lib\5.2.1\2p'
LIB = `C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program
Files\Microsoft Visual Studio\VC98\lib'
LOGNAME = `kope'
LOGONSERVER = `\\CAMOX'
MACHTYPE = `i586-pc-cygwin32'
MSDEVDIR = `C:\Program Files\Microsoft Visual Studio\Common\MSDev98'
NUMBER_OF_PROCESSORS = `1'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSTYPE = `cygwin32'
PATHEXT = `.COM;.EXE;.BAT;.CMD'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 5 Stepping 0, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0500'
PROMPT = `$P$G'
PS1 = `$PWD$ '
SHELL = `/bin/sh'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `C:\TEMP'
TERM = `cygwin'
TMP = `C:\TEMP'
USERDOMAIN = `CAMOX'
USERNAME = `kope'
USERPROFILE = `C:\WINNT\Profiles\kope'
VERSANT_PATH = `C:\VERSANT\5_2_1\NT\bin'
VERSANT_ROOT = `C:\VERSANT'
VIM = `d:\vi'
WINDIR = `C:\WINNT'
_ = `/cygnus/CYGWIN~1/H-I586~1/bin/cygcheck'
__PATH = `C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin'
upath2dpath = `() {  dpath=;
 echo $1 | grep '//' >/dev/null;
 if [ $? = "0" ]; then
 drv=`echo $1 | sed "s%//\(.\)/.*%\1%"`;
 dpath=`echo $1 | sed "s%//./\(.*\)%\1%"`;
 else
 drv="c";
 dpath=`echo $1 | sed "s%/\(.*\)%\1%"`;
 fi;
 dpath=`echo $dpath | sed "s%/%\\\\\%g"`;
 dpath="${drv}:\\${dpath}";
 echo "${dpath}"
}'

Use `-r' to scan registry

a:\ fd           N/A    N/A
c:\ hd  NTFS    2102Mb  65% CP CS UN PA FC
d:\ hd  NTFS    2008Mb  50% CP CS UN PA FC
e:\ cd  CDFS       0Mb -2147483548%    CS              Audio CD

c:    /        native  text!=binary

Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\bash.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\cat.exe
Found: d:\data\bin\cat.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\cat.exe hides
d:\data\bin\cat.exe
Not Found: cpp (good!)
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\find.exe
Found: d:\data\bin\find.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\find.exe hides
d:\data\bin\find.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\gcc.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\gdb.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\ld.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\ls.exe
Found: d:\data\bin\ls.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\ls.exe hides d:\data\bin\ls.exe

Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\make.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\sh.exe
Found: d:\data\bin\sh.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\sh.exe hides d:\data\bin\sh.exe

  371k 1998/12/01 c:\cygnus\CYGWIN~1\H-I586~1\bin\cygtcl80.dll - os=4.0
img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=1998/12/1 9:25
    5k 1998/12/01 c:\cygnus\CYGWIN~1\H-I586~1\bin\cygtclpip80.dll -
os=4.0 img=1.0 sys=4.0
   10k 1998/12/01 c:\cygnus\CYGWIN~1\H-I586~1\bin\cygtclreg80.dll -
os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=1998/12/1 9:25
  600k 1998/12/01 c:\cygnus\CYGWIN~1\H-I586~1\bin\cygtk80.dll - os=4.0
img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=1998/12/1 9:28
  446k 1998/12/03 c:\cygnus\CYGWIN~1\H-I586~1\bin\cygwin1.dll - os=4.0
img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1998/12/4 5:39
Use -h to see help about each section



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Carriage return
  1999-10-03 22:18 Carriage return Peter Kovacs
@ 1999-10-31 19:54 ` Peter Kovacs
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Kovacs @ 1999-10-31 19:54 UTC (permalink / raw)
  To: cygwin

Hello,

Please, could someone help me find out why the function upath2dpath
consistently gives back carriage return characters, while the "CR-test"
proposed earlier in this group seems to be passed. (The function works
without problem on my machine at work. Another difference between the
behavior of the two Cygwin installation, which might be of interest in
this regard, is that on the machine where "upath2dpath" does not work as
I expect I also have to give the "-i" switch to force bash to read
"~/.bashrc".)

Thanks a lot in advance.

Peter

/WINNT/Profiles/kope/Desktop$ echo -n `hostname` | od -c
0000000   c   a   m   o   x
0000005

/WINNT/Profiles/kope/Desktop$ cygcheck -s -v

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Mon Oct 04 05:05:25 1999

WinNT Ver 4.0 build 1381 Service Pack 5

Path: /cygnus/CYGWIN~1/H-I586~1/bin
 /VERSANT/JVI/2_2_3/lib/5.2.1/2p
 /Inprise/vbroker/bin
 /jdk1.2.2/bin
 //d/emacs/bin
 /Perl/bin
 //d/data/bin
 /WINNT/system32
 /WINNT/
 /VERSANT/5_2_1/NT/bin
 .

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

HOME = `//D/data/home'
MAKE_MODE = `UNIX'
PWD = `/WINNT/Profiles/kope/Desktop'

!C: = `C:\WINNT\Profiles\kope\Desktop'
CLASSPATH =
`C:\VERSANT\JVI\2_2_3\lib\jvi2.2.3-jdk1.2.jar;C:\VERSANT\JVI\2_2_3\lib\jgl3.0.0.jar;C:\VERSANT\JVI\2_2_3\lib\oromatcher1.1.jar;C:\VERSANT\JVI\2_2_3\lib\jtaxa0.9.jar'

COMPUTERNAME = `CAMOX'
COMSPEC = `C:\WINNT\system32\cmd.exe'
HISTFILE = `d:/data/home/.bash_history'
HOMEDRIVE = `C:'
HOMEPATH = `\'
HOSTNAME = `camox'
HOSTTYPE = `i586'
INCLUDE = `C:\Program Files\Microsoft Visual
Studio\VC98\atl\include;C:\Program Files\Microsoft Visual
Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual
Studio\VC98\include'
JVI_CLASSPATH =
`C:\VERSANT\JVI\2_2_3\lib\jvi2.2.3-jdk1.2.jar;C:\VERSANT\JVI\2_2_3\lib\jgl3.0.0.jar;C:\VERSANT\JVI\2_2_3\lib\oromatcher1.1.jar;C:\VERSANT\JVI\2_2_3\lib\jtaxa0.9.jar'

JVI_PATH = `C:\VERSANT\JVI\2_2_3\lib\5.2.1\2p'
LIB = `C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program
Files\Microsoft Visual Studio\VC98\lib'
LOGNAME = `kope'
LOGONSERVER = `\\CAMOX'
MACHTYPE = `i586-pc-cygwin32'
MSDEVDIR = `C:\Program Files\Microsoft Visual Studio\Common\MSDev98'
NUMBER_OF_PROCESSORS = `1'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSTYPE = `cygwin32'
PATHEXT = `.COM;.EXE;.BAT;.CMD'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 5 Stepping 0, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0500'
PROMPT = `$P$G'
PS1 = `$PWD$ '
SHELL = `/bin/sh'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `C:\TEMP'
TERM = `cygwin'
TMP = `C:\TEMP'
USERDOMAIN = `CAMOX'
USERNAME = `kope'
USERPROFILE = `C:\WINNT\Profiles\kope'
VERSANT_PATH = `C:\VERSANT\5_2_1\NT\bin'
VERSANT_ROOT = `C:\VERSANT'
VIM = `d:\vi'
WINDIR = `C:\WINNT'
_ = `/cygnus/CYGWIN~1/H-I586~1/bin/cygcheck'
__PATH = `C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin'
upath2dpath = `() {  dpath=;
 echo $1 | grep '//' >/dev/null;
 if [ $? = "0" ]; then
 drv=`echo $1 | sed "s%//\(.\)/.*%\1%"`;
 dpath=`echo $1 | sed "s%//./\(.*\)%\1%"`;
 else
 drv="c";
 dpath=`echo $1 | sed "s%/\(.*\)%\1%"`;
 fi;
 dpath=`echo $dpath | sed "s%/%\\\\\%g"`;
 dpath="${drv}:\\${dpath}";
 echo "${dpath}"
}'

Use `-r' to scan registry

a:\ fd           N/A    N/A
c:\ hd  NTFS    2102Mb  65% CP CS UN PA FC
d:\ hd  NTFS    2008Mb  50% CP CS UN PA FC
e:\ cd  CDFS       0Mb -2147483548%    CS              Audio CD

c:    /        native  text!=binary

Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\bash.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\cat.exe
Found: d:\data\bin\cat.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\cat.exe hides
d:\data\bin\cat.exe
Not Found: cpp (good!)
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\find.exe
Found: d:\data\bin\find.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\find.exe hides
d:\data\bin\find.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\gcc.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\gdb.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\ld.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\ls.exe
Found: d:\data\bin\ls.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\ls.exe hides d:\data\bin\ls.exe

Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\make.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\sh.exe
Found: d:\data\bin\sh.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\sh.exe hides d:\data\bin\sh.exe

  371k 1998/12/01 c:\cygnus\CYGWIN~1\H-I586~1\bin\cygtcl80.dll - os=4.0
img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=1998/12/1 9:25
    5k 1998/12/01 c:\cygnus\CYGWIN~1\H-I586~1\bin\cygtclpip80.dll -
os=4.0 img=1.0 sys=4.0
   10k 1998/12/01 c:\cygnus\CYGWIN~1\H-I586~1\bin\cygtclreg80.dll -
os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=1998/12/1 9:25
  600k 1998/12/01 c:\cygnus\CYGWIN~1\H-I586~1\bin\cygtk80.dll - os=4.0
img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=1998/12/1 9:28
  446k 1998/12/03 c:\cygnus\CYGWIN~1\H-I586~1\bin\cygwin1.dll - os=4.0
img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1998/12/4 5:39
Use -h to see help about each section



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-10-31 19:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-03 22:18 Carriage return Peter Kovacs
1999-10-31 19:54 ` Peter Kovacs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).