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

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed May 16 07:09:52 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 jonpryor at vt.edu.

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

--- shadow/81631	2007-05-15 09:33:05.000000000 -0400
+++ shadow/81631.tmp.27083	2007-05-16 07:09:51.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 81631
 Product: Mono: Class Libraries
 Version: 1.2
 OS: other
 OS Details: OpenSuse 10.2 VM
-Status: NEW   
-Resolution: 
-Severity: 
+Status: RESOLVED   
+Resolution: NOTABUG
+Severity: Unknown
 Priority: Normal
 Component: Mono.POSIX
 AssignedTo: miguel at ximian.com                            
 ReportedBy: vgiszpenc at dsci.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -43,6 +43,21 @@
 /home/currentuser/
 /home/currentuser/foo
 
 
 How often does this happen? 
 Always
+
+------- Additional Comments From jonpryor at vt.edu  2007-05-16 07:09 -------
+Expansion of ~ to $HOME is handled by the shell, not by any POSIX APIs.  
+
+Furthermore, UnixPath.GetFullPath() has not been documented as
+performing tilde expansion (it's missing docs entirely, actually, but
+that's missing the point).
+
+Finally, `~' is a valid filename character; `cd; touch ./~` is a
+perfectly valid set of commands to execute, and results in a file
+named `~' in your home directory, and I'd prefer not to contemplate
+how to disambiguate an actual file named `~' vs. `~' meaning $HOME,
+especially since UnixPath.GetFullPath() shouldn't be reading
+directories anyway (so there would be no way to perform any
+disambiguation without a severe performance penalty).


More information about the mono-bugs mailing list