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