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