Is there clever way to force scripts to point to afni's count instead of llvm's count?

AFNI version info (afni -ver):

Precompiled binary linux_openmp_64: Aug 23 2023 (Version AFNI_23.2.06 'Marcus Didius Severus Julianus')

As referenced here and here, llvm's inclusion of a count command causes conflicts with some of afni's scripts. While the accepted solution is moving afni's dir to the front of PATH, I was curious if there was a method that could be done on a script-by-script basis?

E.g. something like setting the PATH variable in subshell or something.
( setenv PATH /opt/afni:${PATH} ; script )

We might go ahead and rename this program. But for now putting AFNI earlier in the PATH than the llvm directory should be the way to go.

Given that your 'script' example failed, it is likely that the script starts a new shell that in turn puts llvm first again. So you would just want to edit the dot files so that AFNI is first.

Does that seem reasonable?

  • rick
1 Like

Seems like that'll work (or just setting PATH in relevant scripts)