by shigemk2

当面は技術的なことしか書かない

2015-02-20から1日間の記事一覧

2>&1についての小咄

たとえばこういうシェル芸があったとします。 (echo "to stderr" >&2 ; echo "to stdout" ) 2>&1 >> somefilewhat (echo "to stderr" >&2 ; echo "to stdout" ) >> somefilewhat 2>&1 書き方が違うのですから結果が違うのはまあ当然として、キーワードは2>&1…

プライマリコンストラクタを作ろう

The primary constructor of a Scala class is a combination of: The constructor parameters Methods that are called in the body of the class Statements and expressions that are executed in the body of the class なお、Scalaのコンストラクタはこ…