From: Alpha-Bugzilla <alp...@ic...> - 2005-12-28 22:53:52
|
http://rutherglen.ics.mq.edu.au/~alpha-bugzilla/show_bug.cgi?id=1955 Summary: [file::hasOpenWindows] should follow symlinks Product: AlphaTcl Version: 8.1a2 Platform: Macintosh PowerPC OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: SystemCode AssignedTo: alp...@li... ReportedBy: ko...@ma... I think that [file::hasOpenWindows] should follow symlinks and say whether the linked file is open, instead of whether the link itself has an open window (which is probably never the case). It is just a matter of inserting # Resolve symbolic links: if { [file type $fileName] eq "link" } { set fileName [file readlink $fileName] } The question is whether this should happen only in [file::hasOpenWindows] or more generally in [file::ensureStandardPath] which the former proc calls. Perhaps it should happen only in [file::hasOpenWindows], since one never knows if someone wants to use [file::ensureStandardPath] for some purpose where the precise location of the link is important, cf. similar reasons explained in the man page for [file normalize]. Cheers, Joachim. ---------------------------------------------------------------------------- Configure bugmail: http://rutherglen.ics.mq.edu.au/~alpha-bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You are on the CC list for the bug, or are watching someone who is. -- This e-mail has been automatically generated by the Alpha-Bugzilla bugsystem <http://rutherglen.ics.mq.edu.au/~alpha-bugzilla/>. Please direct replies to the maintainer <st...@ic...>. |