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]

Bug about special characters \[,\]


Title: Bug about special characters \[,\]

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>>

checkout

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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