You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cime_config/buildlib.mct, last file modification time is obtained with file inquiry operator M (supported by tcsh) if ( (-M $MCT_DIR/Makefile ) >= (-M Makefile ) ) then
On the header of this file, it is indicated to use csh as the shell #! /bin/csh -fx
On most machines, csh is actually tcsh so the command above works.
/usr/bin/csh -> /bin/tcsh
/bin/csh -> /etc/alternatives/csh, /etc/alternatives/csh -> /bin/tcsh
On some machines where csh is not tcsh (e.g. bsd-csh on Ubuntu) we will get an error:
if: Badly formed number.
If CIME wants to support both csh and tcsh, would it be better to test the csh version and suggest users to install tcsh (if csh is not tcsh)?
The text was updated successfully, but these errors were encountered:
no mask domain should be defined
Avoid defining non-existant variable MASK_DOMAIN_FILE
Explicitly note buildlib.mct is tcsh not csh
Test suite: hand tests
Test baseline:
Test namelist changes:
Test status: bit for bit
Fixes#945
User interface changes?:
Code review:
In cime_config/buildlib.mct, last file modification time is obtained with file inquiry operator M (supported by tcsh)
if ( (-M $MCT_DIR/Makefile ) >= (-M Makefile ) ) then
On the header of this file, it is indicated to use csh as the shell
#! /bin/csh -fx
On most machines, csh is actually tcsh so the command above works.
/usr/bin/csh -> /bin/tcsh
/bin/csh -> /etc/alternatives/csh, /etc/alternatives/csh -> /bin/tcsh
On some machines where csh is not tcsh (e.g. bsd-csh on Ubuntu) we will get an error:
if: Badly formed number.
If CIME wants to support both csh and tcsh, would it be better to test the csh version and suggest users to install tcsh (if csh is not tcsh)?
The text was updated successfully, but these errors were encountered: