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 11:52:36 +1100

On Mon, Feb 16, 2009 at 11:44 AM, Paul Jarc <address@hidden> wrote:
> Jon Seymour <address@hidden> wrote:
>> On Mon, Feb 16, 2009 at 10:22 AM, Paul Jarc <address@hidden> wrote:
>>> CPATH=${CPATH:+$CPATH:}${#+~usr1/blah/blah}
>>
>> Out of interest, how does one derive that outcome from the documented
>> behaviour of bash? That is, which expansion rules are being invoked?
>
> It's ${parameter+word}, using $# (which is always set) as the
> parameter.

The manual specifies a rule for ${parameter:+word}, but not
${parameter+word}. Is the : sugar which can be ignored under some
circumstances?

jon.
>
>
> paul
>




reply via email to

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