Mail Archives: cygwin/1999/10/16/21:15:16
Hi,
I just built gawk-3.0.4 under Cygwin32. It passed all but two of the
tests. Poundbang failed because 'gawk' is really 'gawk.exe' - no
problem.
Strftime() failed because Cygwin /bin/date generates 2 spaces
before the year [Sat Oct 16 04:19:02 1999]. Gawk's print and
printf( "%s\n", $0 ) tend to truncate space separators to a single
space. But, under Cygwin strftime() outputs 2 spaces before the
year as does /bin/date, so (slightly modified from actual test):
date | ./gawk '{print > "out1"; print strftime() > "out2" }'
generates an extra space before the year in out2, but not in out1.
Strftime() does not generate the extra space under HP-UX - the files
match there. Modifying the input date value under HP-UX
date | sed -e 's/1999/ 1999/' | gawk '{ ... }'
also produces two matching output files.
It's likely that date and strftime() generate dates from common
Cygwin sys code. Perhaps someone with intimate knowledge of
Cygwin code can go straight to the problem.
For now I can live with the bug, but I wanted to document it,
small thing that it is.
Regards,
Doug Wyatt
~~~~~~~
15$ gcc --version
2.95
16$ cygcheck -v -r -s
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Sat Oct 16 19:27:57 1999
WinNT Ver 4.0 build 1381 Service Pack 5
Path: /usr/local/bin
/cygnus/cygwin-b20/H-i586-cygwin32/bin
/usr/vim/vim54
/c/WINNT/system32
/c/WINNT
/cygnus/cygwin-b20/H-i586-cygwin32/bin
/c/perl5/bin
/c/etc/NTReskit
SysDir: C:\WINNT\System32
WinDir: C:\WINNT
CYGWIN = `"tty ntsec"'
HOME = `/c/user/daw'
MAKE_MODE = `UNIX'
PWD = `/j/PC_Software/Unix_utilities/gawk-3.0.4'
!C: = `C:\etc\NTRESKIT'
CLASSPATH = `K:\Program_Files\Exceed.nt\hcljrcsv.jar;K:\Program_Files\Exceed.nt\;%QTJava%'
COMSPEC = `C:\WINNT\system32\cmd.exe'
HOSTNAME = `AMANDA'
HOSTTYPE = `i586'
LOGNAME = `wookie'
MACHTYPE = `i586-pc-cygwin32'
MSINPUT = `C:\Program Files\MS Hardware'
NTRESKIT = `C:\etc\NTReskit'
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 1, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0501'
PROMPT = `$P$G'
QTJAVA = `D:\etc\jdk1.2.1\jre\lib\ext\QTJava.zip'
SHELL = `/bin/sh'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TERM = `linux'
USERDOMAIN = `AMANDA'
USERNAME = `wookie'
WINDIR = `C:\WINNT'
_ = `/bin/cygcheck'
cyg0 = `/cygnus/cygwin-b20'
cyg1 = `/cygnus/cygwin-b20/H-i586-cygwin32'
cyg2 = `/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32'
src1 = `/ksr/software'
src = `//j/pc_software'
TZ = `CST6CDT5,M4.1.0/2,M10.5.0/2'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
(default) = `/cygdrive'
cygdrive flags = 0x00000020
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
(default) = `d:'
flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/c
(default) = `c:'
flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/e
(default) = `e:'
flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/f
(default) = `f:'
flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/j
(default) = `j:'
flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/k
(default) = `k:'
flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
(default) = `k:'
unix = `/k'
fbinary = 0x00000000
fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01
(default) = `j:'
unix = `/j'
fbinary = 0x00000001
fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02
(default) = `f:'
unix = `/f'
fbinary = 0x00000000
fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03
(default) = `e:'
unix = `/e'
fbinary = 0x00000000
fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04
(default) = `c:'
unix = `/c'
fbinary = 0x00000000
fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05
(default) = `d:'
unix = `/'
fbinary = 0x00000000
fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\08
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\09
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\10
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\11
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\12
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\13
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\14
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\15
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\16
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\17
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\18
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\19
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1D
a: fd N/A N/A
c: hd FAT 2047Mb 93% CP UN IDE-0101
d: hd NTFS 4094Mb 91% CP CS UN PA FC IDE-0102
e: hd FAT 2047Mb 86% CP UN SCSI-0101
f: hd FAT 2039Mb 82% CP UN SCSI-0102
g: fd N/A N/A
h: cd CDFS 614Mb 100% CS UN 990307_0300
i: cd CDUDFRW 531Mb 98% CP UN dcd_990822a
j: hd FAT 2039Mb 93% CP UN SCSI-0103
k: hd NTFS 2549Mb 69% CP CS UN PA FC SCSI-0104
d: / user textmode
c: /c user textmode
e: /e user textmode
f: /f user textmode
j: /j user binmode
k: /k user textmode
Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\bash.exe
Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cat.exe
Found: c:\etc\NTReskit\cat.exe
Warning: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cat.exe hides c:\etc\NTReskit\cat.exe
Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cpp.exe
Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\find.exe
Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\gcc.exe
Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\gdb.exe
Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ld.exe
Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ls.exe
Found: c:\etc\NTReskit\ls.exe
Warning: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ls.exe hides c:\etc\NTReskit\ls.exe
Found: d:\usr\local\bin\make.exe
Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\make.exe
Warning: d:\usr\local\bin\make.exe hides d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\make.exe
Found: d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\sh.exe
371k 1998/12/01 d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
"cygtcl80.dll" v0.0 ts=1998/12/1 2:25
5k 1998/12/01 d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
10k 1998/12/01 d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
"cygtclreg80.dll" v0.0 ts=1998/12/1 2:25
600k 1998/12/01 d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
"cygtk80.dll" v0.0 ts=1998/12/1 2:28
529k 1999/10/06 d:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=1999/10/5 23:26
==========================================================
Doug Wyatt E-Mail: dwyatt AT sunflower DOT com
Sys Admin Phone: 785-843-4099
Kohlman Systems Research, Inc. Fax: 785-843-6459
319 Perry St., Lawrence, KS 66044 USA
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -