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