シェルスクリプト総合 その21
■ このスレッドは過去ログ倉庫に格納されています
0073名無しさん@お腹いっぱい。
2012/12/10(月) 13:52:17.02fooが nullかunset なら "", それ以外は "hello"
${foo+hello}
fooが unsetなら "", それ以外は "hello"
前者は man bash にて仕様が
${parameter:+word}
Use Alternate Value. If parameter is null or unset, nothing is
substituted, otherwise the expansion of word is substituted.
のように確認できたのですが、後者が見あたりません
どの辺を見れば載っているでしょうか? 或いは man レベルでは載っていない仕様でしょうか?
■ このスレッドは過去ログ倉庫に格納されています