bug-bash
[Top][All Lists]
Advanced

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

Re: No tilde expansion right after a quotation


From: Jon Seymour
Subject: Re: No tilde expansion right after a quotation
Date: Mon, 16 Feb 2009 12:28:53 +1100

On Mon, Feb 16, 2009 at 12:11 PM, Paul Jarc <prj@po.cwru.edu> wrote:
> Jon Seymour <jon.seymour@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

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