From b1971b067afe773775db775caa1342467b5209b9 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 3 Feb 2006 23:55:26 +0000 Subject: [PATCH] Use getcwd() because it works under MSYS but `pwd` doesn't. --- util/mklink.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/util/mklink.pl b/util/mklink.pl index c8653cecc3..182732d959 100755 --- a/util/mklink.pl +++ b/util/mklink.pl @@ -14,13 +14,16 @@ # not contain symbolic links and that the parent of / is never referenced. # Apart from this, this script should be able to handle even the most # pathological cases. +# + +use Cwd; my $from = shift; my @files = @ARGV; my @from_path = split(/[\\\/]/, $from); -my $pwd = `pwd`; -chop($pwd); +my $pwd = getcwd(); +chomp($pwd); my @pwd_path = split(/[\\\/]/, $pwd); my @to_path = (); -- 2.34.1