bcdev / sst-cci-toolbox

A toolbox for the processing, analysis and validation of the Sea-Surface Temperature (SST) data products related to the ESA Climate Change Initiative (CCI).
http://www.esa-sst-cci.org
12 stars 7 forks source link

periods in variable names invalid #32

Open gerritholl opened 8 years ago

gerritholl commented 8 years ago

When running the shell scripts, I get

./regrid-start.sh: line 3: ${mms.home}/bin/mms-env.sh: bad substitution

And indeed, as of Bash v3, periods are not allowed in variable names. It looks like recent versions of Bash have started enforcing this.

It's the only explanation I can think of why this was working when I ran it on CEMS 3 months ago, but not now.

I don't have time to implement a proper fix right now, simplest would be to replace the periods by underscores.

gerritholl commented 8 years ago

I wonder, on what shells does this otherwise work?