Hi again
first - my apologies to Joshua Daniel Franklin if i in any way
affronted.
second - TX to Joshua and Dan Vasaru for the suggestions.
Attached at the end the output of running "cygcheck -s -v -r"
The problem. ( a bit long)
We are running awk scripts in a cmd console box on w2k using
gawk 3.1.1 and the needed dll's on 2 different machine with cygwin
installed.
As it is outside a Cygwin environment - the mount points should
not
effect this.
The input files to gawk works fine and without any problems.
The problem is with the program-file.
gawk wants the program-file in unix format ie. no cr/lf
termination.
eg. the following program files - tst.awk saved with notepad.
#========================
BEGIN { FS=",";
gsub("\"","",fromevent);
totalfound=0; } { totalfound += 1; } END {
print "totalfound = ",totalfound; exit
totalfound; } #========================
executing in a cmd console box
gawk -f tst.awk
gawk: tst.awk:1: BEGIN { FS=","; ' in
expression:
^ invalid char '
It complains about the CR in the line termination.
If however we save the file in unix format then gawk 3.1.1 works
fine.
Setting the CYGWIN environment variable in the command script has no
effect.
This was never a problem with gawk 3.0.4
BUT....................
Running the above on 2 other machines in the shop with similiar
configs and
where cygwin is not and never was installed
The problem does NOT occur. ie. gawk 3.1.1 behaves as expected and
takes
program-files in either dos or unix format.
My questions.
- Is this by design or are we missing something.
- Seeing it is not a problem where cygwin was not installed
is a system dll or registry entry perhaps
involved? Maybe the environment?
- Any suggestions on where to look? what to look for?
- As we do not beforehand know the config of system where this
will
be installed - we will be having hassles with
the QA of all the program-files
Tx and kind regards
Pieter Prinsloo
==================cygcheck -s -v -r===========================
Cygwin Win95/NT Configuration Diagnostics Current System Time:
Tue Sep 10 00:18:19 2002
Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3, RC
3.51
Path: D:\programfiles\cygwin\usr\local\bin D:\programfiles\cygwin\bin D:\programfiles\cygwin\bin d:\ORACLE9i\bin d:\ORACLE9i\Apache\Perl\5.00503\bin\mswin32-x86 c:\Program
Files\Oracle\jre\1.1.8\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem d:\ORANT\BIN d:\util\mysql\bin d:\Program
Files\Microsoft Visual
Studio\VC98\bin D:\programfiles\cygwin\usr\X11R6\bin
SysDir: C:\WINNT\System32 WinDir: C:\WINNT
CYGWIN = `nobinmode' HOME =
`D:\programfiles\cygwin\home\pieterp' MAKE_MODE = `unix' PWD =
`/cygdrive/e/develop/dump/new' USER = `pieterp'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA =
`C:\Documents and Settings\Administrator\Application
Data' COMMONPROGRAMFILES = `C:\Program Files\Common
Files' COMPUTERNAME = `PEXY' COMSPEC =
`C:\WINNT\system32\cmd.exe' HOMEDRIVE = `C:' HOMEPATH =
`\' INCLUDE = `d:\Program Files\Microsoft Visual
Studio\VC98\atl\include;d:\Program Files\Microsoft Visual
Studio\VC98\mfc\include;d:\Program Files\Microsoft Visual
Studio\VC98\include' JSERV = `D:\ORACLE9i/Apache/Jserv/conf' LIB =
`d:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;d:\Program
Files\Microsoft Visual Studio\VC98\lib' LOGONSERVER =
`\\PEXY' MANPATH = `:/usr/ssl/man' MSDEVDIR = `C:\Program
Files\Microsoft Visual Studio\Common\MSDev98' NTRESKIT = `F:\Program
Files\Resource Kit' NUMBER_OF_PROCESSORS = `1' OLDPWD =
`/cygdrive/e/develop/dump' OS2LIBPATH =
`C:\WINNT\system32\os2\dll;' OS = `Windows_NT' PATHEXT =
`.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PROCESSOR_ARCHITECTURE
= `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 6 Stepping 2,
AuthenticAMD' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION =
`0602' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$_$G' PS1 =
`\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' SHLVL
= `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP =
`c:\Temp' TERM = `cygwin' TMP = `c:\Temp' USERDOMAIN =
`PEXY' USERNAME = `pieterp' USERPROFILE = `C:\Documents and
Settings\Administrator' WINDIR = `C:\WINNT' WV_GATEWAY_CFG =
`D:\ORACLE9i\Apache\modplsql\cfg\wdbsvr.app' _ =
`/usr/bin/cygcheck'
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 = 0x00000022 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) =
`D:\programfiles\cygwin' flags =
0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts
v2\/usr/bin (default) = `D:\programfiles\cygwin/bin'
flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2\/usr/lib (default) =
`D:\programfiles\cygwin/lib' flags =
0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program
Options
a:
fd
N/A
N/A
c: hd NTFS 4996Mb 47% CP CS UN PA
FC d: hd NTFS
14998Mb 54% CP CS UN PA FC
pexy_D e: hd NTFS 9852Mb 57% CP CS
UN PA FC pexy_E f: hd
NTFS 5498Mb 50% CP CS UN PA
FC pexy_F z:
cd
N/A
N/A
.
/cygdrive user
binmode,cygdrive D:\programfiles\cygwin
/ system
binmode D:\programfiles\cygwin/bin /usr/bin
system binmode D:\programfiles\cygwin/lib
/usr/lib system
binmode .
/cygdrive user binmode,cygdrive
Found: D:\programfiles\cygwin\bin\bash.exe Found:
D:\programfiles\cygwin\bin\cat.exe Found:
D:\programfiles\cygwin\bin\cpp.exe Found:
D:\programfiles\cygwin\bin\find.exe Found:
D:\programfiles\cygwin\bin\gcc.exe Found:
D:\programfiles\cygwin\bin\gdb.exe Found:
D:\programfiles\cygwin\bin\ld.exe Found:
D:\programfiles\cygwin\bin\ls.exe Found:
D:\programfiles\cygwin\bin\make.exe Found:
D:\programfiles\cygwin\bin\sh.exe
929k 2002/06/24 .\cygiconv-2.dll - os=4.0 img=1.0
sys=4.0
"cygiconv-2.dll" v0.0 ts=2002/6/24 20:24 23k 2002/06/24
.\cygintl-2.dll - os=4.0 img=1.0
sys=4.0
"cygintl-2.dll" v0.0 ts=2002/6/24 6:54 883k 2002/07/06
.\cygwin1.dll - os=4.0 img=1.0
sys=4.0
"cygwin1.dll" v0.0 ts=2002/7/6 8:16 Cygwin DLL
version info: DLL version:
1.3.12 DLL epoch:
19 DLL bad signal mask:
19005 DLL old termios:
5 DLL malloc env:
28 API major:
0 API minor:
54 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:
Sat Jul 6 02:16:58 EDT 2002
CVS tag: cygwin-1-3-12-1
Shared id: cygwin1S3
929k 2002/06/24 .\cygiconv-2.dll - os=4.0 img=1.0
sys=4.0
"cygiconv-2.dll" v0.0 ts=2002/6/24 20:24 23k 2002/06/24
.\cygintl-2.dll - os=4.0 img=1.0
sys=4.0
"cygintl-2.dll" v0.0 ts=2002/6/24 6:54 883k 2002/07/06
.\cygwin1.dll - os=4.0 img=1.0
sys=4.0
"cygwin1.dll" v0.0 ts=2002/7/6 8:16 Cygwin DLL
version info: DLL version:
1.3.12 DLL epoch:
19 DLL bad signal mask:
19005 DLL old termios:
5 DLL malloc env:
28 API major:
0 API minor:
54 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:
Sat Jul 6 02:16:58 EDT 2002
CVS tag: cygwin-1-3-12-1
Shared id: cygwin1S3
58k 2002/05/07 D:\programfiles\cygwin\bin\cygbz2-1.dll -
os=4.0 img=1.0
sys=4.0
"cygbz2-1.dll" v0.0 ts=2002/5/7 8:33 54k 2002/01/27
D:\programfiles\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0
sys=4.0
"cygbz21.0.dll" v0.0 ts=2002/1/27 3:07 625k 2002/08/09
D:\programfiles\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0
sys=4.0
"cygcrypto.dll" v0.0 ts=2002/8/9 22:20 45k 2001/04/25
D:\programfiles\cygwin\bin\cygform5.dll - os=4.0 img=1.0
sys=4.0
"cygform5.dll" v0.0 ts=2001/4/25 7:28 35k 2002/01/09
D:\programfiles\cygwin\bin\cygform6.dll - os=4.0 img=1.0
sys=4.0
"cygform6.dll" v0.0 ts=2002/1/9 8:03 19k 2002/02/20
D:\programfiles\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0
sys=4.0
"cyggdbm.dll" v0.0 ts=2002/2/20 5:05 17k 2001/06/28
D:\programfiles\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0
sys=4.0
"cyghistory4.dll" v0.0 ts=2001/1/7 6:34 20k 2002/07/17
D:\programfiles\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0
sys=4.0
"cyghistory5.dll" v0.0 ts=2002/7/17 23:18 929k 2002/06/24
D:\programfiles\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0
sys=4.0
"cygiconv-2.dll" v0.0 ts=2002/6/24 20:24 22k 2001/12/13
D:\programfiles\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0
sys=4.0
"cygintl-1.dll" v0.0 ts=2001/12/13 11:28 23k 2002/06/24
D:\programfiles\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0
sys=4.0
"cygintl-2.dll" v0.0 ts=2002/6/24 6:54 21k 2001/06/20
D:\programfiles\cygwin\bin\cygintl.dll - os=4.0 img=1.0
sys=4.0
"cygintl.dll" v0.0 ts=2001/6/20 19:09 81k 2001/10/20
D:\programfiles\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0
sys=4.0
"cygitcl30.dll" v0.0 ts=2001/10/20 2:25 35k 2001/10/20
D:\programfiles\cygwin\bin\cygitk30.dll - os=4.0 img=1.0
sys=4.0
"cygitk30.dll" v0.0 ts=2001/10/20 2:25 45k 2002/02/08
D:\programfiles\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0
sys=4.0
"cygjbig1.dll" v0.0 ts=2002/2/8 1:59 119k 2002/02/09
D:\programfiles\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0
sys=4.0
"cygjpeg6b.dll" v0.0 ts=2002/2/9 7:19 59k 2002/08/09
D:\programfiles\cygwin\bin\cygkpathsea-3-3-7.dll - os=4.0 img=1.0
sys=4.0
"cygkpathsea-3-3-7.dll" v0.0 ts=2002/8/9 15:37 26k
2001/04/25 D:\programfiles\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0
sys=4.0
"cygmenu5.dll" v0.0 ts=2001/4/25 7:27 20k 2002/01/09
D:\programfiles\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0
sys=4.0
"cygmenu6.dll" v0.0 ts=2002/1/9 8:03 156k 2001/04/25
D:\programfiles\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0
sys=4.0
"cygncurses++5.dll" v0.0 ts=2001/4/25 7:29 175k 2002/01/09
D:\programfiles\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0
sys=4.0
"cygncurses++6.dll" v0.0 ts=2002/1/9 8:03 226k 2001/04/25
D:\programfiles\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0
sys=4.0
"cygncurses5.dll" v0.0 ts=2001/4/25 7:17 202k 2002/01/09
D:\programfiles\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0
sys=4.0
"cygncurses6.dll" v0.0 ts=2002/1/9 8:03 15k 2001/04/25
D:\programfiles\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0
sys=4.0
"cygpanel5.dll" v0.0 ts=2001/4/25 7:27 12k 2002/01/09
D:\programfiles\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0
sys=4.0
"cygpanel6.dll" v0.0 ts=2002/1/9 8:03 40k 2001/11/21
D:\programfiles\cygwin\bin\cygpcre.dll - os=4.0 img=1.0
sys=4.0
"cygpcre.dll" v0.0 ts=2001/11/22 0:15 39k 2001/11/21
D:\programfiles\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0
sys=4.0
"cygpcreposix.dll" v0.0 ts=2001/11/22 0:15 175k 2002/07/22
D:\programfiles\cygwin\bin\cygpng10.dll - os=4.0 img=1.0
sys=4.0
"cygpng10.dll" v0.0 ts=2002/7/22 17:51 179k 2002/07/22
D:\programfiles\cygwin\bin\cygpng12.dll - os=4.0 img=1.0
sys=4.0
"cygpng12.dll" v0.0 ts=2002/7/22 18:03 170k 2002/01/21
D:\programfiles\cygwin\bin\cygpng2.dll - os=4.0 img=1.0
sys=4.0
"cygpng2.dll" v0.0 ts=2002/1/21 3:05 22k 2002/06/09
D:\programfiles\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0
sys=4.0
"cygpopt-0.dll" v0.0 ts=2002/6/9 7:45 108k 2001/06/28
D:\programfiles\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0
sys=4.0
"cygreadline4.dll" v0.0 ts=2001/1/7 6:34 127k 2002/07/17
D:\programfiles\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0
sys=4.0
"cygreadline5.dll" v0.0 ts=2002/7/17 23:18 159k 2002/08/09
D:\programfiles\cygwin\bin\cygssl.dll - os=4.0 img=1.0
sys=4.0
"cygssl.dll" v0.0 ts=2002/8/9 22:20 390k 2001/10/20
D:\programfiles\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0
sys=4.0
"cygtcl80.dll" v0.0 ts=2001/10/20 2:24 5k 2001/10/20
D:\programfiles\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0
sys=4.0 10k 2001/10/20
D:\programfiles\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0
sys=4.0
"cygtclreg80.dll" v0.0 ts=2001/10/20 2:24 253k 2002/02/10
D:\programfiles\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0
sys=4.0
"cygtiff3.dll" v0.0 ts=2002/2/10 10:34 623k 2001/10/20
D:\programfiles\cygwin\bin\cygtk80.dll - os=4.0 img=1.0
sys=4.0
"cygtk80.dll" v0.0 ts=2001/10/20 2:25 2975k 1999/09/18
D:\programfiles\cygwin\bin\CYGWIN.DLL - os=4.0 img=1.0
sys=4.0
"cygwin.dll" v0.0 ts=1996/12/11 2:13 41k 2002/01/20
D:\programfiles\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0
sys=4.0
"cygXpm-noX4.dll" v0.0 ts=2002/1/20 20:49 46k 2002/01/20
D:\programfiles\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0
sys=4.0
"cygXpm-X4.dll" v0.0 ts=2002/1/20 20:50 50k 2002/03/12
D:\programfiles\cygwin\bin\cygz.dll - os=4.0 img=1.0
sys=4.0
"cygz.dll" v0.0 ts=2002/3/12 6:38 883k 2002/07/06
D:\programfiles\cygwin\bin\cygwin1.dll - os=4.0 img=1.0
sys=4.0
"cygwin1.dll" v0.0 ts=2002/7/6 8:16 Cygwin DLL
version info: DLL version:
1.3.12 DLL epoch:
19 DLL bad signal mask:
19005 DLL old termios:
5 DLL malloc env:
28 API major:
0 API minor:
54 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:
Sat Jul 6 02:16:58 EDT 2002
CVS tag: cygwin-1-3-12-1
Shared id: cygwin1S3
653k 1998/10/30 d:\util\mysql\bin\cygwinb19.dll - os=4.0
img=1.0
sys=4.0
"cygwinb19.dll" v0.0 ts=1998/7/15 19:50
Package
Version
_update-info-dir
00059-1
ash
20020731-1
autoconf
2.53b-1
autoconf-devel
2.53a-1
autoconf-stable
2.13-4
automake
1.6.2-1
automake-devel
1.6.2-1
automake-stable
1.4p5-5
bash
2.05b-3
binutils
20020706-2
bison
1.35-1
byacc
1.9-1
bzip2
1.0.2-2
clear
1.0-1
cpio
2.4.2
cron
3.0.1-7
crypt
1.0-1
ctags
5.2-1
cvs
1.11.0-1
cygrunsrv
0.95-1
cygutils
1.1.2-1
cygwin
1.3.12-4
cygwin-doc
1.1-2
dejagnu
20010117-1
diff
1.0-1
diffutils
2.8.1-1
ed
0.2-1
expect
20010117-1
file
3.37-1
fileutils
4.1-1
findutils
4.1.7-4
flex
2.5.4-2
gawk
3.1.1-2
gcc
2.95.3-5
gdb
20010428-3
gdbm
1.8.0-4
gettext
0.11.2-2
ghostscript
7.05-1
ghostscript-base
7.05-1
gperf
0.0
grep
2.5-1
groff
1.17.2-1
gzip
1.3.3-4
inetutils
1.3.2-19
irc
20010101-1
jbigkit
1.2-6
jpeg
6b-7
less
374-1
libbz2_0
1.0.2-1
libbz2_1
1.0.2-2
libiconv2
1.8-2
libintl
0.10.38-3
libintl1
0.10.40-1
libintl2
0.11.2-2
libkpathsea3
20020530-3
libncurses5
5.2-1
libncurses6
5.2-8
libpng
1.2.4-2
libpng10
1.0.14-2
libpng12
1.2.4-2
libpng2
1.0.12-1
libpopt0
1.6.4-4
libreadline4
4.1-2
libreadline5
4.3-1
login
1.4-4
lynx
2.8.4-1
m4
0.0
make
3.79.1-7
man
1.5g-2
mingw
20010424-1
mktemp
1.4-1
mt
2.0.1-1
mutt
1.4-1
ncftp
3.1.4-1
ncurses
5.2-8
newlib-man
20020801
opengl
1.1.0-6
openssh
3.4p1-5
openssl
0.9.6g-1
patch
2.5-3
pcre
3.7-1
perl
5.6.1-2
popt
1.6.4-4
postgresql
7.2.2-1
python
2.2.1-1
readline
4.3-1
regex
4.4
rsync
2.5.5-1
rxvt
2.7.2-10
sed
3.02-1
sh-utils
2.0-2
squid
2.4.STABLE7-1
ssmtp
2.38.7-3
tar
1.13.19-1
tcltk
20001125-1
tcsh
6.11.00-4
termcap
20020403-1
terminfo
5.2-3
tetex-beta
20020530-3
tetex-bin
20020530-3
texinfo
4.2-3
textutils
2.0.21-1
tiff
3.5.7-1
time
1.7-1
unzip
5.50-1
vim
6.1-2
w32api
2.0-1
wget
1.8.2-1
which
1.5-1
xpm-nox
4.2.0-1
zip
2.3-2
zlib
1.1.4-1
Use -h to see help about each section
|