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