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:
parent
cce37e9136
commit
f2d3e8e22c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user