Open ghost opened 4 years ago
With some experimentation it seems that we need to escape the line continuation \\
but this should not be.
Checking the yaml spec..
5.7. Escaped Characters Note that escape sequences are only interpreted in double-quoted scalars. In all other scalar styles, the “\” character has no special meaning and non-printable characters are not available.
In the example, a |
indicating the literal scalar style
8.1.2. Literal Style The literal style is denoted by the “|” indicator. It is the simplest, most restricted, and most readable scalar style. Inside literal scalars, all (indented) characters are considered to be content, including white space characters. Note that all line break characters are normalized. In addition, empty lines are not folded, though final line breaks and trailing empty lines are chomped.
There is no way to escape characters inside literal scalars. This restricts them to printable characters. In addition, there is no way to break a long literal line.
So either ruaml.yaml
or cwltool
is making an error here
@tetron has requested new conformance tests in the v1.2 repo
@tetron I added this, by mistake, to an existing PR. The original PR was tiny, just a wording clarification in the docs, so I think this is ok. I'll change the PR title.
The following bash script is valid
The following CWL with an embedded bash script is not correctly handled by
cwltool
. It looks like the line continuation\
symbol is removed?The cwltool (and also toil, since toil uses cwltool) error is:
As a contrast the SB platform executor executes this correctly.