From: Armin Kunaschik Date: Tue, 31 May 2016 00:26:12 +0000 (+0200) Subject: t7800: readlink may not be available X-Git-Tag: v2.9.1~7^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2addc3b96886bb4dee71ef36684c8010bc37d16;p=git t7800: readlink may not be available The readlink(1) command is not available on all platforms (notably not on AIX and HP-UX) and can be replaced in this test with the "workaround" ls -ld | sed -e 's/.* -> //' This is no universal readlink replacement but works in the controlled test environment well enough. Signed-off-by: Armin Kunaschik Signed-off-by: Junio C Hamano --- diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh index ea35a0241c..cec3eafdfd 100755 --- a/t/t7800-difftool.sh +++ b/t/t7800-difftool.sh @@ -423,7 +423,7 @@ write_script .git/CHECK_SYMLINKS <<\EOF for f in file file2 sub/sub do echo "$f" - readlink "$2/$f" + ls -ld "$2/$f" | sed -e 's/.* -> //' done >actual EOF