summaryrefslogtreecommitdiff
path: root/testsuite/head/head-works
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/head/head-works')
-rw-r--r--testsuite/head/head-works5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/head/head-works b/testsuite/head/head-works
index ea10ade..56ad3e3 100644
--- a/testsuite/head/head-works
+++ b/testsuite/head/head-works
@@ -1,3 +1,4 @@
-head ../README > logfile.gnu
-busybox head ../README > logfile.bb
+[ -n "$d" ] || d=..
+head "$d/README" > logfile.gnu
+busybox head "$d/README" > logfile.bb
cmp logfile.gnu logfile.bb