problem with variable replacement
Hi,
I have moved from version 3.9.1-foss-2015a-Python-2.7.9 to version 3.11.0b-foss-2015a-Python-2.7.9 and I found a problem with when creating the *cmd files from the templates.
In the template I have a string like this (e.g.: /esarchive/autosubmit/a14t/proj/auto-caliope/templates/hermes/run_hermes.sh):
fdir=$(date +%Y%m%d%H -d "12:00 ${CHUNK_START_DATE}-${n} day")
But in the *cmd file is written like this (e.g.: /esarchive/autosubmit/a14t/tmp/a14t_20150801_1_1_HERMES_IP.cmd_):
fdir=$(date +%Yd%H -d "12:00 ${CHUNK_START_DATE}-${n} day")
It seems like the %m% is replaced by nothing, but in fact I do not want to do anything with this string (+%Y%m%d%H) because if part of the date command.
I have moved to the stable version again where everything works, but it could be nice if you could have a look at this.
Thank you!
MT
FYI: @dmanubens @mcastril