[Mono-bugs] [Bug 40557][Min] New - square brackets and braces cause Directory.cs methods to act incorrectly
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Mon, 31 Mar 2003 00:20:32 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by drteeth@monkeyhouse.ca.
http://bugzilla.ximian.com/show_bug.cgi?id=40557
--- shadow/40557 Mon Mar 31 00:20:32 2003
+++ shadow/40557.tmp.28309 Mon Mar 31 00:20:32 2003
@@ -0,0 +1,59 @@
+Bug#: 40557
+Product: Mono/Class Libraries
+Version: unspecified
+OS: other
+OS Details: Gentoo 1.4rc3
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: drteeth@monkeyhouse.ca
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: square brackets and braces cause Directory.cs methods to act incorrectly
+
+This is my first bug report ever, for anything, so please let me know if i
+do anything wrong.
+
+Description of Problem:
+
+Steps to reproduce the problem:
+1. create a directory somewhere with square brackets in the name.
+# mkdir \[testdir\]
+
+2. put some files in there
+# touch \[testdir\]/file1
+# touch \[testdir\]/file2
+
+3. create dirtest.cs with the following code:
+using System;
+using System.IO;
+
+public class dirtest
+{
+ public static void Main(String[] args)
+ {
+ string[] arrFiles = Directory.GetFiles(args[0]);
+ Console.WriteLine( "found {0} files.", arrFiles.Length );
+ }
+}
+
+
+3. Compile and run it with your test folder as the argument
+# mcs dirtest.cs
+# mono dirtest.exe \[testdir\]
+
+4. it should return "found 0 files."
+Actual Results:
+found 0 files.
+
+Expected Results:
+I would expect it to find 2 files, or throw an exception if it can't find
+the folder.
+
+How often does this happen?
+everytime.