csh 文字の改行について

csh のマニュアルには以下のように書かれています。

set name ... set name=word ... ... These arguments can be repeated to set and/or make read-only multiple variables in a single set command. Note, however, that variable expansion happens for all arguments before any setting occurs. Note also that `=' can be adjacent to both name and word or separated from both by whitespace, but cannot be adjacent to only one or the other. See also the unset builtin command.

質問文のコードでは、変数 bodyecho を代入し、次に変数名 タイトル を発見してエラーになっていると思われます。複数の語からなる文字列を変数に代入するには、引用符で囲みます。

コメントを投稿

0 コメント