Open adamnovak opened 8 months ago
so it's hard to tell what should happen here.
Agree this isn't crystal clear from the spec, and the current miniwdl implementation takes a hard line in making any }
close the command regardless of anything preceding it (such as a nested opening brace, or an attempt to escape it).
In the absence of a clear spec contradiction I'm inclined to leave it be, but certainly leaving this open for further discussion.
I went to exercise the special characters and I found that MiniWDL can't parse this:
The close brace in the quotes in the shell script terminates the brace-enclosed command section, presumably because it isn't part of a
${}
substitution. I get this from the parser where this snippet appears in my file:I could enclose my command in
<<< >>>
instead. But if I have a command string that contains both}
and>>>
, how would I enclose it? And\}
doesn't seem to work for escaping the brace.The WDL spec has an actual grammar definition in some places, but not really for command sections, so it's hard to tell what should happen here.