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.
This commit is contained in:
fanf 2003-02-03 23:03:05 +00:00
parent cce37e9136
commit f2d3e8e22c

View File

@ -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.