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

2009-01-10 Thread Martin Schwenke
> "Bob" == Bob Proulx writes: Bob> [...] Let me suggest that something similar to the following Bob> addition would help here. Bob> is unset or null; omitting the colon (':') results in a Bob> test only for a parameter that is unset. Bob> Then searches on ":" would a

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

2009-01-09 Thread Bob Proulx
Martin Schwenke wrote: > Paul Jarc writes: > > 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, > >

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

2009-01-09 Thread Martin Schwenke
> "Paul" == Paul Jarc writes: Paul> "Martin Schwenke" wrote: >> Neither bash.info or bash(1) documents parameter expansion of >> the form: >> >> ${parameter+word} Paul> It's documented, but it's easy to miss. Just before the Paul> list of parameter expansion f

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

2009-01-08 Thread Chet Ramey
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 i

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

2009-01-08 Thread Paul Jarc
"Martin Schwenke" 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 e

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

2009-01-08 Thread Martin Schwenke
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 Spe