From 66d2d26ef6eb9a6231fc8c5af24902b922570b04 Mon Sep 17 00:00:00 2001 From: solene Date: Fri, 30 Nov 2018 08:55:58 +0000 Subject: in getopts, when a option is followed by a colon the parameter is mandatory ok guenther@ deraadt@ --- bin/ksh/sh.1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/ksh/sh.1') diff --git a/bin/ksh/sh.1 b/bin/ksh/sh.1 index 4896f3fb911..76b09be882b 100644 --- a/bin/ksh/sh.1 +++ b/bin/ksh/sh.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sh.1,v 1.149 2018/09/28 18:32:39 millert Exp $ +.\" $OpenBSD: sh.1,v 1.150 2018/11/30 08:55:57 solene Exp $ .\" .\" Copyright (c) 2015 Jason McIntyre .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: September 28 2018 $ +.Dd $Mdocdate: November 30 2018 $ .Dt SH 1 .Os .Sh NAME @@ -495,7 +495,7 @@ to the index of the next variable to be processed. The string .Ar optstring contains a list of acceptable options; -a colon following an option indicates it may take an argument. +a colon following an option indicates it requires an argument. If an option not recognised by .Ar optstring is found, -- cgit v1.2.3