But back to that first command, you still seem to be running it via bash, the wildcard expressions are failing to match any files, and it is therefore putting wildcard characters into the ttest++ script. Those "set dirA = ..." types of commands are not in bash syntax.
The ggc command is using tcsh syntax in bash, and it is not working.
Do not execute ggc on the command line (if you are), but put that in its own tcsh script, and run it via the same "tcsh -x SCRIPT ..." syntax as with the 3dttest++ one.
- rick