]> git.saurik.com Git - apple/shell_cmds.git/blobdiff - sh/tests/builtins/getopts9.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / builtins / getopts9.0
index d23fc432af97ab0411da66a72eac67419bf40275..aa4abbc91c593aad1965969a5fe2fdac173a2688 100644 (file)
@@ -1,9 +1,9 @@
-# $FreeBSD$
+# $FreeBSD: head/bin/sh/tests/builtins/getopts9.0 297752 2016-04-09 16:06:13Z jilles $
 
 args='-ab'
 getopts ab opt $args
-echo $?:$opt:$OPTARG
+printf '%s\n' "$?:$opt:$OPTARG"
 for dummy in dummy1 dummy2; do
        getopts ab opt $args
-       echo $?:$opt:$OPTARG
+       printf '%s\n' "$?:$opt:$OPTARG"
 done