From 47905789537df7bbe52905ff3771c02585ff7674 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 11 Sep 2012 12:11:55 -0500 Subject: [PATCH] tools: Try harder to collapse ../ components in AbsPath Idea from Angus Gratton, ANU --- src/tools/EPICS/Path.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/EPICS/Path.pm b/src/tools/EPICS/Path.pm index ba6ad4a9b..83a91efb3 100644 --- a/src/tools/EPICS/Path.pm +++ b/src/tools/EPICS/Path.pm @@ -123,6 +123,7 @@ sub AbsPath { # Now calculate the absolute path my $abs = File::Spec->rel2abs($path, abs_path($cwd)); + $abs = abs_path($abs) if -e $abs; return LocalPath($abs); }