As part of a Travis build, I’m running a relatively simple bash script downloaded from here.
+++ADD_ARGS+=(--static --with-lapack='-llapack -lblas -lgfortran -lquadmath -lm') +++export ADD_ARGS+ coinbrew/.ci/setup_environment.sh: line 37: export: `ADD_ARGS+': not a valid identifier
I can’t see what’s going on with this error and it only happens in this one particular case. I’ve tried many little tweaks and have tired to replicate running the same script with the same exact versions of bash and have failed to uncover anything. There’s obviously a difference in how the script is being invoked on the actual build machine and the way I’m invoking it in trying to replicate. There is some subtlety around subshells, yada, yada, but the fact that this works on MacOS and (mostly) works on xenial leads me to believe that the problem is not with anything in my setup, but who knows. I’ve been trying to track this down for some time, but I’m at my wit’s end.
I’d appreciate any ideas what to poke at next.