[Mono-bugs] [Bug 81631][Nor] New - Mono.Unix.UnixPath.GetFullPath does not expand tilde (~)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 15 09:33:05 EDT 2007


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 vgiszpenc at dsci.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81631

--- shadow/81631	2007-05-15 09:33:05.000000000 -0400
+++ shadow/81631.tmp.31216	2007-05-15 09:33:05.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 81631
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: OpenSuse 10.2 VM
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Mono.POSIX
+AssignedTo: miguel at ximian.com                            
+ReportedBy: vgiszpenc at dsci.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono.Unix.UnixPath.GetFullPath does not expand tilde (~)
+
+Description of Problem:
+Mono.Unix.UnixPath.GetFullPath("~") should return /home/currentusername
+Mono.Unix.UnixPath.GetFullPath("~/foo") should return /home/currentusername/foo
+
+Steps to reproduce the problem:
+1. According to the docs, the Mono.Posix library is 2.0 so you might need
+that set of libraries.
+
+public class Test
+{
+	static void Main()
+	{
+		string fullPath = Mono.Unix.UnixPath.GetFullPath("~");
+		//check fullPath here
+	}
+}
+
+
+Actual Results:
+/path/to/exe/~
+/path/to/exe/~/foo
+
+
+Expected Results:
+/home/currentuser/
+/home/currentuser/foo
+
+
+How often does this happen? 
+Always


More information about the mono-bugs mailing list