\n expanding to newline at the header and tailer script
Hello @dbeltran and @bdepaula,
Autosubmit Version
v3.15.0b, custom-header-tailer branch
Which task has issues?
Every task in which there is EXTENDED_TAILER_PATH
or EXTENDED_HEADER_PATH
in the jobs_XXXX.conf
and the extended script contains a "\n" in it.
Summary
If the script to be inserted has a "\n", the moment that the placeholder is substituted, instead of mantaining the \n, a new line is inserted.
Steps to reproduce
Create a dummy experiment and include EXTENDED_TAILER_PATH = header/header.sh
at any job and include in the folder proj/header/header.sh
with the following script:
#!/usr/bin/bash
printf 'Hello world\nHello moon'
What is the current bug behavior?
###################
# Extended header
###################
printf "Hello world
Hello moon"
What is the expected correct behavior?
###################
# Extended header
###################
printf "Hello world\nHello moon"