diff options
author | jilles <jilles@FreeBSD.org> | 2014-05-09 13:32:36 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2014-05-09 13:32:36 +0000 |
commit | 0d127c3d771123baf79c9bf71f6db3745b483705 (patch) | |
tree | 6646832cf4545ead3c37a0d0aa11e56b4ee9992c /bin/sh/tests | |
parent | 6a9f9b97f66628a3136322c7d20c7360fe424419 (diff) | |
download | FreeBSD-src-0d127c3d771123baf79c9bf71f6db3745b483705.zip FreeBSD-src-0d127c3d771123baf79c9bf71f6db3745b483705.tar.gz |
sh: Send getopts error messages to stderr, not stdout.
Adjust a testcase for this change.
Diffstat (limited to 'bin/sh/tests')
-rw-r--r-- | bin/sh/tests/builtins/getopts1.0 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/tests/builtins/getopts1.0 b/bin/sh/tests/builtins/getopts1.0 index af31d55..64763bc 100644 --- a/bin/sh/tests/builtins/getopts1.0 +++ b/bin/sh/tests/builtins/getopts1.0 @@ -15,7 +15,7 @@ printf -- '-2-\n' set -- -ab getopts "ab:" OPTION echo ${OPTION} -getopts "ab:" OPTION +getopts "ab:" OPTION 3>&2 2>&1 >&3 3>&- echo ${OPTION} # The 'shift' is aimed at causing an error. |