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