diff options
author | Tony Finch <fanf@FreeBSD.org> | 2003-02-03 23:03:05 +0000 |
---|---|---|
committer | Tony Finch <fanf@FreeBSD.org> | 2003-02-03 23:03:05 +0000 |
commit | 1413f7de536670d1f27b41e9633229d8fa13a0e9 (patch) | |
tree | 0a0b01ec28059a6cdfd255901972523d1905ef7c /bin | |
parent | 6e085fd13f8f58f226cd8f4af15123bfa12e12e7 (diff) | |
download | src-1413f7de536670d1f27b41e9633229d8fa13a0e9.tar.gz src-1413f7de536670d1f27b41e9633229d8fa13a0e9.zip |
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.
Notes
Notes:
svn path=/head/; revision=110302
Diffstat (limited to 'bin')
-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 c344df95155e..bc5db9454a5e 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. |