This statement is still true in a BGC case because of the extra wildcard
https://github.com/ESCOMP/CTSM/blob/bb2a8d2c0c05ebb5417724f98fb0586dc7584ae6/cime_config/usermods_dirs/NEON/defaults/shell_commands#L35C1-L36C1
Something like the following would be more accurate
if [[ $compset =~ .*CLM[0-9]+%SP* ]]; then
This statement is still true in a BGC case because of the extra wildcard
https://github.com/ESCOMP/CTSM/blob/bb2a8d2c0c05ebb5417724f98fb0586dc7584ae6/cime_config/usermods_dirs/NEON/defaults/shell_commands#L35C1-L36C1
Something like the following would be more accurate
if [[ $compset =~ .*CLM[0-9]+%SP* ]]; then