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:
Tony Finch 2003-02-03 23:03:05 +00:00
parent 6e085fd13f
commit 1413f7de53
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110302

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.