Mail Archives: cygwin/2001/06/18/13:32:34
------_=_NextPart_000_01C0F80B.9AF96C20
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C0F80B.9AF96C20"
------_=_NextPart_001_01C0F80B.9AF96C20
Content-Type: text/plain;
charset="iso-8859-1"
Hi there.
I just found that special characters '[' and ']' are wrongly handled by
kernel. Following is the case:
I have a file named "file[21].txt"
I have a shell script:
files=`ls *.txt`
for f in $files; do echo $f; done
the output is:
file1.txt
file2.txt
I tested on unix(solaris 8) and it works fine(output "file[21].txt"), and I
believe this is a kernel bug.
<<checkout>>
------_=_NextPart_001_01C0F80B.9AF96C20
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>Bug about special characters \[,\]</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2 FACE=3D"Arial">Hi there.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">I just found that special characters =
'[' and ']' are wrongly handled by kernel. Following is the =
case:</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">I have a file named =
"file[21].txt"</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">I have a shell script:</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">files=3D`ls *.txt`</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">for f in $files; do echo $f; =
done</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">the output is:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">file1.txt</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">file2.txt</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">I tested on unix(solaris 8) and it =
works fine(output "file[21].txt"), and I believe this is a =
kernel bug.</FONT>
<BR><FONT FACE=3D"Arial" SIZE=3D2 COLOR=3D"#000000"> =
<<checkout>> </FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C0F80B.9AF96C20--
------_=_NextPart_000_01C0F80B.9AF96C20
Content-Type: application/octet-stream;
name="checkout"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="checkout"
=0A=
Cygnus Win95/NT Configuration Diagnostics=0A=
Current System Time: Mon Jun 18 11:25:52 2001=0A=
=0A=
WinNT Ver 5.0 build 2195 Service Pack 1=0A=
=0A=
Path: /usr/local/bin=0A=
/usr/bin=0A=
/bin=0A=
/cygdrive/c/WINNT/system32=0A=
/cygdrive/c/WINNT=0A=
/cygdrive/c/WINNT/System32/Wbem=0A=
"C=0A=
/Program Files/Hummingbird/Connectivity/7.00/Accessories/"=0A=
/cygdrive/c/WINNT/system32/nls=0A=
/cygdrive/c/WINNT/system32/nls/English=0A=
/usr/bin=0A=
/cygdrive/c/Program Files/Microsoft Visual =
Studio/Common/Tools/WinNT=0A=
/cygdrive/c/Program Files/Microsoft Visual =
Studio/Common/MSDev98/Bin=0A=
/cygdrive/c/Program Files/Microsoft Visual Studio/Common/Tools=0A=
/cygdrive/c/Program Files/Microsoft Visual Studio/VC98/bin=0A=
/cygdrive/c/jdk1.3.1/bin=0A=
Z=0A=
.=0A=
.=0A=
=0A=
SysDir: C:\WINNT\System32=0A=
WinDir: C:\WINNT=0A=
=0A=
PWD =3D `/home/Administrator'=0A=
USER =3D `Administrator'=0A=
MAKE_MODE =3D `unix'=0A=
HOME =3D `/home/Administrator'=0A=
=0A=
NUMBER_OF_PROCESSORS =3D `1'=0A=
PROMPT =3D `$P$G'=0A=
LOGONSERVER =3D `\\HPG-BDC'=0A=
OS2LIBPATH =3D `C:\WINNT\system32\os2\dll;'=0A=
COMSPEC =3D `C:\WINNT\system32\cmd.exe'=0A=
!C: =3D `C:\cygwin\bin'=0A=
NWLANGUAGE =3D `English'=0A=
J2EE_HOME =3D `c:\jdk1.3.1'=0A=
SYSTEMDRIVE =3D `C:'=0A=
HOSTNAME =3D `CD011152'=0A=
INCLUDE =3D `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'=0A=
PROCESSOR_REVISION =3D `0806'=0A=
MSDEVDIR =3D `C:\Program Files\Microsoft Visual =
Studio\Common\MSDev98'=0A=
PATHEXT =3D `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'=0A=
!R: =3D `R:\'=0A=
COMPUTERNAME =3D `CD011152'=0A=
WINDIR =3D `C:\WINNT'=0A=
USERPROFILE =3D `C:\Documents and Settings\wehao'=0A=
!F: =3D `F:\'=0A=
PS1 =3D `\[\033]0;\w\007=0A=
\033[32m\]\u@\h \[\033[33m\w\033[0m\]=0A=
$ '=0A=
PROGRAMFILES =3D `C:\Program Files'=0A=
!:: =3D `::\'=0A=
!U: =3D `U:\'=0A=
MACHTYPE =3D `i386'=0A=
PROCESSOR_IDENTIFIER =3D `x86 Family 6 Model 8 Stepping 6, =
GenuineIntel'=0A=
OS =3D `Windows_NT'=0A=
OLDPWD =3D `/usr/bin'=0A=
!I: =3D `I:\'=0A=
PROCESSOR_ARCHITECTURE =3D `x86'=0A=
TEMP =3D `/cygdrive/c/WINNT/TEMP'=0A=
PROCESSOR_LEVEL =3D `6'=0A=
SYSTEMROOT =3D `C:\WINNT'=0A=
JAVA_HOME =3D `C:\JDK1.3.1'=0A=
NWUSERNAME =3D `WEHAO'=0A=
WINDOWS_LOGIN =3D `0'=0A=
HOMEDRIVE =3D `C:'=0A=
LIB =3D `C:\Program Files\Microsoft Visual =
Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual =
Studio\VC98\lib'=0A=
ALLUSERSPROFILE =3D `C:\Documents and Settings\All Users'=0A=
SHLVL =3D `2'=0A=
LOCATION =3D `.FLI_CMK.FOREST'=0A=
!Y: =3D `Y:\'=0A=
COMMONPROGRAMFILES =3D `C:\Program Files\Common Files'=0A=
HOMEPATH =3D `\'=0A=
USERDOMAIN =3D `FRXNTNYC'=0A=
!L: =3D `L:\'=0A=
!Z: =3D `Z:\'=0A=
USERNAME =3D `wehao'=0A=
SHELL =3D `/bin/bash'=0A=
!M: =3D `M:\'=0A=
HOSTTYPE =3D `i386'=0A=
OSTYPE =3D `posix'=0A=
TERM =3D `cygwin'=0A=
!N: =3D `N:\'=0A=
_ =3D `/usr/bin/tcsh'=0A=
VENDOR =3D `intel'=0A=
LOGNAME =3D `Administrator'=0A=
GROUP =3D `None'=0A=
HOST =3D `CD011152'=0A=
TZ =3D `EST5EDT4,M4.1.0/2,M10.5.0/2'=0A=
=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2=0A=
(default) =3D `/cygdrive'=0A=
cygdrive flags =3D 0x00000022=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options=0A=
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Men=
uOrder\Start Menu\Programs\Cygnus Solutions=0A=
(default) =3D (unsupported type)=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/=0A=
(default) =3D `C:/cygwin'=0A=
flags =3D 0x0000000a=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts =
v2\/usr/bin=0A=
(default) =3D `C:/cygwin/bin'=0A=
flags =3D 0x0000000a=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts =
v2\/usr/lib=0A=
(default) =3D `C:/cygwin/lib'=0A=
flags =3D 0x0000000a=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options=0A=
=0A=
c: hd FAT32 19059Mb 27% CP UN =0A=
d: cd N/A N/A =0A=
f: net NWFS 125Mb 100% CP FC SYS=0A=
i: net NWFS 125Mb 100% CP FC SYS=0A=
l: net NWFS 8324Mb 45% CP FC SYSSHARE=0A=
m: net NWFS 5500Mb 67% CP FC SYSMAIL=0A=
n: net NWFS 5500Mb 67% CP FC SYSMAIL=0A=
r: net NWFS 8324Mb 45% CP FC SYSSHARE=0A=
u: net NWFS 1054Mb 82% CP FC SYSUSER=0A=
y: net NWFS 187Mb 100% CP FC SYSAPPS=0A=
z: net NWFS 125Mb 100% CP FC SYS=0A=
=0A=
C:\cygwin\bin /usr/bin system binmode=0A=
C:\cygwin\lib /usr/lib system binmode=0A=
C:\cygwin / system binmode=0A=
c: /cygdrive/c user binmode,noumount=0A=
f: /cygdrive/f user binmode,noumount=0A=
i: /cygdrive/i user binmode,noumount=0A=
l: /cygdrive/l user binmode,noumount=0A=
m: /cygdrive/m user binmode,noumount=0A=
n: /cygdrive/n user binmode,noumount=0A=
r: /cygdrive/r user binmode,noumount=0A=
u: /cygdrive/u user binmode,noumount=0A=
y: /cygdrive/y user binmode,noumount=0A=
z: /cygdrive/z user binmode,noumount=0A=
=0A=
Found: C:\cygwin\bin\bash.exe=0A=
Found: C:\cygwin\bin\cat.exe=0A=
Found: C:\cygwin\bin\cpp.exe=0A=
Found: C:\cygwin\bin\find.exe=0A=
Found: C:\cygwin\bin\gcc.exe=0A=
Found: C:\cygwin\bin\gdb.exe=0A=
Found: C:\cygwin\bin\ld.exe=0A=
Found: C:\cygwin\bin\ls.exe=0A=
Found: C:\cygwin\bin\make.exe=0A=
Found: C:\cygwin\bin\sh.exe=0A=
=0A=
56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygbz21.0.dll" v0.0 ts=3D2000/11/20 18:53=0A=
18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cyggdbm.dll" v0.0 ts=3D2000/10/22 22:26=0A=
14k 2000/10/23 C:\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygintl.dll" v0.0 ts=3D2000/10/23 15:02=0A=
45k 2000/10/22 C:\cygwin\bin\cygjbig1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygjbig1.dll" v0.0 ts=3D2000/10/22 19:06=0A=
119k 2000/10/23 C:\cygwin\bin\cygjpeg6b.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygjpeg6b.dll" v0.0 ts=3D2000/10/22 20:58=0A=
163k 2001/05/06 C:\cygwin\bin\cygpng2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygpng2.dll" v0.0 ts=3D2001/5/6 0:05=0A=
45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygform5.dll" v0.0 ts=3D2001/4/25 1:28=0A=
26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygmenu5.dll" v0.0 ts=3D2001/4/25 1:27=0A=
156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygncurses++5.dll" v0.0 ts=3D2001/4/25 1:29=0A=
226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygncurses5.dll" v0.0 ts=3D2001/4/25 1:17=0A=
15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygpanel5.dll" v0.0 ts=3D2001/4/25 1:27=0A=
17k 2001/01/07 C:\cygwin\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cyghistory4.dll" v0.0 ts=3D2001/1/6 23:34=0A=
108k 2001/01/07 C:\cygwin\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygreadline4.dll" v0.0 ts=3D2001/1/6 23:34=0A=
81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygitcl30.dll" v0.0 ts=3D2000/11/25 20:43=0A=
35k 2000/12/05 C:\cygwin\bin\cygitk30.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygitk30.dll" v0.0 ts=3D2000/11/25 20:43=0A=
390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygtcl80.dll" v0.0 ts=3D2000/11/25 20:39=0A=
5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygtclreg80.dll" v0.0 ts=3D2000/11/25 20:39=0A=
623k 2000/12/05 C:\cygwin\bin\cygtk80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygtk80.dll" v0.0 ts=3D2000/11/25 20:43=0A=
243k 2000/10/23 C:\cygwin\bin\cygtiff3.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygtiff3.dll" v0.0 ts=3D2000/10/22 21:14=0A=
45k 2000/11/20 C:\cygwin\bin\cygXpm-X4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygXpm-X4.dll" v0.0 ts=3D2000/11/19 21:45=0A=
41k 2001/05/28 C:\cygwin\bin\cygXpm-noX4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygXpm-noX4.dll" v0.0 ts=3D2001/5/28 13:57=0A=
49k 2001/02/03 C:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygz.dll" v0.0 ts=3D2001/2/3 15:35=0A=
678k 2001/05/21 C:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
"cygwin1.dll" v0.0 ts=3D2001/5/20 23:28=0A=
Cygwin DLL version info:=0A=
dll major: 1003=0A=
dll minor: 2=0A=
dll epoch: 19=0A=
dll bad signal mask: 19005=0A=
dll old termios: 5=0A=
dll malloc env: 28=0A=
api major: 0=0A=
api minor: 39=0A=
shared data: 3=0A=
dll identifier: cygwin1=0A=
mount registry: 2=0A=
cygnus registry name: Cygnus Solutions=0A=
cygwin registry name: Cygwin=0A=
program options name: Program Options=0A=
cygwin mount registry name: mounts v2=0A=
cygdrive flags: cygdrive flags=0A=
cygdrive prefix: cygdrive prefix=0A=
cygdrive default prefix: =0A=
build date: Sun May 20 23:28:17 EDT 2001=0A=
shared id: cygwin1S3=0A=
=0A=
Use -h to see help about each section=0A=
------_=_NextPart_000_01C0F80B.9AF96C20
Content-Type: text/plain; charset=us-ascii
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
------_=_NextPart_000_01C0F80B.9AF96C20--
- Raw text -