bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ${parameter+word} not documented in bash.info or bash(1)


From: Paul Jarc
Subject: Re: ${parameter+word} not documented in bash.info or bash(1)
Date: Thu, 08 Jan 2009 11:30:14 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

"Martin Schwenke" <martin@meltin.net> wrote:
> Neither bash.info or bash(1) documents parameter expansion of the
> form:
>
>   ${parameter+word}

It's documented, but it's easy to miss.  Just before the list of
parameter expansion forms is this paragraph:

       In each of the cases below, word is subject to tilde expansion,
       parameter expansion, command substitution, and arithmetic
       expansion.  When not performing substring expansion, bash tests
       for a parameter that is unset or null; omitting the colon
       results in a test only for a parameter that is unset.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]