summaryrefslogtreecommitdiffstats
path: root/bin/sh/tests/builtins/getopts2.0
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2016-04-09 16:06:13 +0000
committerjilles <jilles@FreeBSD.org>2016-04-09 16:06:13 +0000
commit8c8069ff15ec4563a7ca9d91a07748e0fd5a5a67 (patch)
treebbd1633d34def4e58032ded7110db992a7b7060b /bin/sh/tests/builtins/getopts2.0
parent872f9979ca66f9de4958fee179e93aadf7de7dd8 (diff)
downloadFreeBSD-src-8c8069ff15ec4563a7ca9d91a07748e0fd5a5a67.zip
FreeBSD-src-8c8069ff15ec4563a7ca9d91a07748e0fd5a5a67.tar.gz
sh: Fix some unquoted variables in tests.
The builtins/getopts1.0 test failed if a single-character file existed in the current directory.
Diffstat (limited to 'bin/sh/tests/builtins/getopts2.0')
-rw-r--r--bin/sh/tests/builtins/getopts2.02
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/tests/builtins/getopts2.0 b/bin/sh/tests/builtins/getopts2.0
index 5a5dbe2..1bd2c32 100644
--- a/bin/sh/tests/builtins/getopts2.0
+++ b/bin/sh/tests/builtins/getopts2.0
@@ -3,4 +3,4 @@ set - -ax
getopts ax option
set -C
getopts ax option
-echo $option
+printf '%s\n' "$option"
OpenPOWER on IntegriCloud