bashのmanページから:
${parameter:-word}
Use Default Values. If parameter is unset or null, the expansion of word is substituted. Otherwise, the value of parameter is substituted.
あなたの場合、あなたは使うでしょう
$関数svcp(){
$ 2のdef_msg = "devブランチ"
echo svn copy "repoaddress / branch / $ 1.0.x" "repoaddress / branch / dev / $ 2" -m \ "$ {3:-$ def_msg} \";
}
$ svcp 2刺激的な新しいもの
svnコピーrepoaddress / branch / 2.0.x repoaddress / branch / dev / exciting_new_stuff -m "刺激的なブランチの開発ブランチ"
$ svcp 2刺激_新しい_もの "世界支配のための秘密のレシピ"
svn copy repoaddress / branch / 2.0.x repoaddress / branch / dev / exciting_new_stuff -m "世界支配のための秘密のレシピ"
ドル
生成されたsvnコマンドに満足したら、echoコマンドを削除できます