[Top][All Lists]

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

Undocumented behaviour - parameter expansion ${par-word}

From: Roman Rakus
Subject: Undocumented behaviour - parameter expansion ${par-word}
Date: Tue, 04 Sep 2012 13:13:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

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 and deprecated, like $[]? Or just undocumented?


reply via email to

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