From owner-freebsd-doc@FreeBSD.ORG Sun Jan 5 10:40:01 2014 Return-Path: Delivered-To: freebsd-doc@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4A781FD for ; Sun, 5 Jan 2014 10:40:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B18931382 for ; Sun, 5 Jan 2014 10:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s05Ae1r7079694 for ; Sun, 5 Jan 2014 10:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s05Ae1Oi079693; Sun, 5 Jan 2014 10:40:01 GMT (envelope-from gnats) Date: Sun, 5 Jan 2014 10:40:01 GMT Message-Id: <201401051040.s05Ae1Oi079693@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org Cc: From: Taras Korenko Subject: Re: docs/185481: sh/bash Parameter Expansion +/- syntax not documented X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Taras Korenko List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jan 2014 10:40:01 -0000 The following reply was made to PR docs/185481; it has been noted by GNATS. From: Taras Korenko To: FreeBSD-gnats-submit@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