在csh中使用foreach语法

mah*_*ood 2 linux shell csh

对于这个csh脚本

#!/bin/csh

foreach file in (.)
  echo "$file"
end
Run Code Online (Sandbox Code Playgroud)

我收到这个错误

foreach: Words not parenthesized.
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?