Загляните в man 1 csh
. Раздел Pre-defined and environment variables
перечисляет, какие переменные csh
определяют или учитывают. Есть переменная shell
в нижнем регистре:
shell The file in which the shell resides. This variable is used in
forking shells to interpret files that have execute bits set,
but which are not executable by the system. (See the descrip-
tion of Non-builtin Command Execution below.) Initialized to
the (system-dependent) home of the shell.
Итак, посмотрим:
% echo $shell
/bin/csh
Вы должны установить для переменной SHELL
значение /bin/csh
в вашем crontrab, вы можете проверить переменную среды cron через:
* * * * * env > ~/cron-env
tail -f ~/cron-env
Значение по умолчанию SHELL
должно быть установлено на /bin/sh
.