2010-01-13から1日間の記事一覧

シェルの関数内関数

シェルスクリプトは古き良きBourne Shellで書くものであり、Manual Page - sh(1)を参照するのが良い。SUSv4のShell Command Languageでは高機能すぎる。ふと気づいたが、古き良きBourne Shellであっても関数内関数が使える。 foo() { f() { echo foo; } } ba…