From d2addc3b96886bb4dee71ef36684c8010bc37d16 Mon Sep 17 00:00:00 2001 From: Armin Kunaschik Date: Tue, 31 May 2016 02:26:12 +0200 Subject: [PATCH] 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 --- t/t7800-difftool.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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