summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-07-08 08:13:20 +0000
committerguenther <guenther@openbsd.org>2012-07-08 08:13:20 +0000
commit745b90751bf3d736e2c83b28a9253989150ab189 (patch)
treedc0c7b656a3d155e8d1461e5fc80bb86adfb8d61
parentfix ajacoutot's whining (i wish...) (diff)
downloadwireguard-openbsd-745b90751bf3d736e2c83b28a9253989150ab189.tar.xz
wireguard-openbsd-745b90751bf3d736e2c83b28a9253989150ab189.zip
Document ${var[@]} and ${var[*]}
ok espie@
-rw-r--r--bin/ksh/ksh.116
1 files changed, 14 insertions, 2 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1
index 1937559f12c..41124bd2a42 100644
--- a/bin/ksh/ksh.1
+++ b/bin/ksh/ksh.1
@@ -1,8 +1,8 @@
-.\" $OpenBSD: ksh.1,v 1.143 2012/06/19 16:41:00 jmc Exp $
+.\" $OpenBSD: ksh.1,v 1.144 2012/07/08 08:13:20 guenther Exp $
.\"
.\" Public Domain
.\"
-.Dd $Mdocdate: June 19 2012 $
+.Dd $Mdocdate: July 8 2012 $
.Dt KSH 1
.Os
.Sh NAME
@@ -1050,6 +1050,18 @@ or
where
.Ar name
is a parameter name.
+If
+.Ar expr
+is a literal
+.Ql @
+then the named array is expanded using the same quoting rules as
+.Ql $@ ,
+while if
+.Ar expr
+is a literal
+.Ql *
+then the named array is expanded using the same quoting rules as
+.Ql $* .
If substitution is performed on a parameter
(or an array parameter element)
that is not set, a null string is substituted unless the