Source Too many arguments: is not csh!

When using


We found the following system error:

smoke4.7/scripts/run/source set_months_v4.csh -m 7 0
source: Too many arguments.

Which stopped the execution. After too many search, we found that:

  • csh: does not accept to ‘source’ a file with arguments: suorce [file] [arguments]
  • tcsh: (enhanced retrocompatiblecsh) does accept arguments when sourcing
    We found that in most linux environments, users tend to link tcsh as csh

At the same time, we need to modify some scripts:

  • At line #1 of smoke4.7/scripts/log_analyzer/, smoke4.7/scripts/run/, smoke4.7/scripts/annual_report/ we needed to update python call as
#!/usr/bin/env python3

  • On line # 30 of smoke4.7/scripts/run/set_months_v4.csh, erroneous syntax on providing arguments: it is being provided as $# (sh/bash) and to be 100% csh should be $#argv web:
if ( $#argv == 3 ) then

1 Like

Can you clarify where the nonpoint script came from? Was it part of the EPA installation package or part of the EPA 2017 platform posted here:

They come from the SMOKE-TestCase provided from here SMOKE-TestCase:

git clone