Re: Undocumented behaviour - parameter expansion ${par-word}

2012-09-04 Thread Jan Schampera
On 04.09.2012 13:13, Roman Rakus wrote: Hi, Petr, adding to cc: list, found behaviour not documented, neither in man page nor bash ref manual: ${par-word} will do expansion of par, and if the par is unset it is substituted by word. It is different from ${par:-word}, where word is used when par is

Re: Undocumented behaviour - parameter expansion ${par-word}

2012-09-04 Thread Roman Rakus
On 09/04/2012 01:19 PM, Clark WANG wrote: On Tue, Sep 4, 2012 at 7:13 PM, Roman Rakus wrote: Hi, Petr, adding to cc: list, found behaviour not documented, neither in man page nor bash ref manual: ${par-word} will do expansion of par, and if the par is unset it is substituted by word. It is dif

Re: Undocumented behaviour - parameter expansion ${par-word}

2012-09-04 Thread Clark WANG
On Tue, Sep 4, 2012 at 7:13 PM, Roman Rakus wrote: > Hi, > Petr, adding to cc: list, found behaviour not documented, neither in man > page nor bash ref manual: > ${par-word} will do expansion of par, and if the par is unset it is > substituted by word. It is different from ${par:-word}, where wor

Re: Undocumented behaviour - parameter expansion ${par-word}

2012-09-04 Thread Eric Blake
On 09/04/2012 05:13 AM, Roman Rakus wrote: > Hi, > Petr, adding to cc: list, found behaviour not documented, neither in man > page nor bash ref manual: > ${par-word} will do expansion of par, and if the par is unset it is > substituted by word. It is different from ${par:-word}, where word is > use

Undocumented behaviour - parameter expansion ${par-word}

2012-09-04 Thread Roman Rakus
Hi, Petr, adding to cc: list, found behaviour not documented, neither in man page nor bash ref manual: ${par-word} will do expansion of par, and if the par is unset it is substituted by word. It is different from ${par:-word}, where word is used when par is unset or null. Is it undocumented a