On Mon, Feb 16, 2009 at 12:11 PM, Paul Jarc <p...@po.cwru.edu> wrote:
> Jon Seymour <jon.seym...@gmail.com> wrote:
>> The manual specifies a rule for ${parameter:+word}, but not
>> ${parameter+word}.
>
> It's there, but easy to miss:
>       In each of the cases below, word is subject to tilde expansion, parame-
>       ter  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 parame-
>       ter that is unset.
>

Ah, thank you. I suspect I might have seen it if it had read:

>       unset  or null; omitting the colon (:) results in a test only for a 
> parameter

since I don't think my word scanning firmware is capable of doing to
the colon -> : transform automatically :-)

jon.


Reply via email to