cshのexit
cshのexitはシェルの終了を意味するコマンドです。
cshの最後や、分岐してエラー発生時に終了したい場合に使用します。
以下サンプルです。

#!/bin/csh

set arr = (test1 test2 test3)
set i = $#arr
set j = 1

while ( $j <= $i )
  echo $test[$j]
  @ j++
end

exit;

Back to top

Information