summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorfanf <fanf@FreeBSD.org>2003-02-03 23:03:05 +0000
committerfanf <fanf@FreeBSD.org>2003-02-03 23:03:05 +0000
commitf2d3e8e22c98806ae4a9cc529bc7cab78301faab (patch)
tree0a0b01ec28059a6cdfd255901972523d1905ef7c /bin
parentcce37e9136a55640bfdca37c57bb40653d75360a (diff)
downloadFreeBSD-src-f2d3e8e22c98806ae4a9cc529bc7cab78301faab.zip
FreeBSD-src-f2d3e8e22c98806ae4a9cc529bc7cab78301faab.tar.gz
Improve the layout of the description of the various parameter expansion
modifiers. The paragraph that explains the difference between ${foo:-bar} and ${foo-bar} etc. was not very visible.
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/sh.12
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index c344df9..bc5db94 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -1076,10 +1076,12 @@ Use Alternate Value. If parameter is unset
or null, null is substituted;
otherwise, the expansion of word is
substituted.
+.El
.Pp
In the parameter expansions shown previously, use of the colon in the
format results in a test for a parameter that is unset or null; omission
of the colon results in a test for a parameter that is only unset.
+.Bl -tag -width indent
.It Li ${#parameter}
String Length. The length in characters of
the value of parameter.
OpenPOWER on IntegriCloud