docs/185481: sh/bash Parameter Expansion +/- syntax not documented

Taras Korenko ds at ukrhub.net
Sun Jan 5 10:40:01 UTC 2014


The following reply was made to PR docs/185481; it has been noted by GNATS.

From: Taras Korenko <ds at ukrhub.net>
To: FreeBSD-gnats-submit at freebsd.org
Cc:  
Subject: Re: docs/185481: sh/bash Parameter Expansion +/- syntax not
 documented
Date: Sun, 5 Jan 2014 12:30:13 +0200

 On Sat, Jan 04, 2014 at 07:45:19PM -0800, Ronald F.Guilmette wrote:
 > ...
 > 	${parameter-word}
 > 	${parameter+word}
 > 
 > These forms are not however documented in the "Parameter Expansion"
 > sections of either the man page for sh or the man page for bash.
 > ...
 
 "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."
 
 (c) sh(1) under "Parameter Expansion" section (also on web -> [1]).
 
 --
 1. http://www.freebsd.org/cgi/man.cgi?query=sh&apropos=0&sektion=1&manpath=FreeBSD+9.2-RELEASE&arch=default&format=html
 -- 
   WBR, Taras Korenko


More information about the freebsd-doc mailing list