diff options
author | fanf <fanf@FreeBSD.org> | 2003-02-03 23:03:05 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2003-02-03 23:03:05 +0000 |
commit | f2d3e8e22c98806ae4a9cc529bc7cab78301faab (patch) | |
tree | 0a0b01ec28059a6cdfd255901972523d1905ef7c /bin/sh | |
parent | cce37e9136a55640bfdca37c57bb40653d75360a (diff) | |
download | FreeBSD-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/sh')
-rw-r--r-- | bin/sh/sh.1 | 2 |
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. |