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: Chet Ramey
Subject: Re: ${parameter+word} not documented in bash.info or bash(1)
Date: Thu, 08 Jan 2009 11:43:45 -0500
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Martin Schwenke wrote:
> I'm running bash 3.2.39(1)-release (under Ubuntu 8.04 (Hardy)
> GNU/Linux).  Neither bash.info or bash(1) documents parameter
> expansion of the form:
> 
>   ${parameter+word}
> 
> This is different to ${parameter:+word}, is clearly implemented by
> bash and is documented in the standard (The Open Group Base
> Specifications Issue 6, IEEE Std 1003.1, 2004 Edition).
> 
> This may be useful:
> 
>   
> http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02

The bash documentation includes essentially the same text as the standard
describing the effect of omitting the colon in those word expansions.

> Thanks for bash, it rocks...  :-)

:-)

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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