common-workflow-language / common-workflow-language/cwltool

sample command output should be wrapped in parenthesis

Open
#1,249 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
376
Forks
255
Avg merge
2d 7h
Merged PRs (30d)
12

Description

With:

``` cwl
cwlVersion: v1.0
class: CommandLineTool

inputs:
my_directory: Directory

baseCommand: [bash, -c]

arguments:
- "ls $(inputs.my_directory.path); ls $(inputs.my_directory.path)"

outputs:
result: stdout
```

Current:
```
$ cwltool test.cwl
INFO /usr/bin/cwltool 1.0.20190915164430
INFO Resolved 'test.cwl' to 'file:///home/michael/test.cwl'
INFO [job test.cwl] /tmp/tw9azxpv$ bash \
-c \
'ls /tmp/tmpgu2ttti2/stgddcf5c1b-4e40-4992-bf48-ce01f40b6df2/t; ls /tmp/tmpgu2ttti2/stgddcf5c1b-4e40-4992-bf48-ce01f40b6df2/t' > /tmp/tw9azxpv/da429be172539cb76be1c4634e042936a95faf6a
INFO [job test.cwl] completed success
{
"result": {
"location": "file:///home/michael/da429be172539cb76be1c4634e042936a95faf6a",
"basename": "da429be172539cb76be1c4634e042936a95faf6a",
"class": "File",
"checksum": "sha1$8fa3e78e5eab5a0273c714ec57ba79bc5b046bba",
"size": 8,
"path": "/home/michael/da429be172539cb76be1c4634e042936a95faf6a"
}
}
INFO Final process status is success

```

Desired:

```
$ cwltool test.cwl
INFO /usr/bin/cwltool 1.0.20190915164430
INFO Resolved 'test.cwl' to 'file:///home/michael/test.cwl'
INFO [job test.cwl] /tmp/tw9azxpv$ ( \
bash \
-c \
'ls /tmp/tmpgu2ttti2/stgddcf5c1b-4e40-4992-bf48-ce01f40b6df2/t; ls /tmp/tmpgu2ttti2/stgddcf5c1b-4e40-4992-bf48-ce01f40b6df2/t' \
) > /tmp/tw9azxpv/da429be172539cb76be1c4634e042936a95faf6a
INFO [job test.cwl] completed success
{
"result": {
"location": "file:///home/michael/da429be172539cb76be1c4634e042936a95faf6a",
"basename": "da429be172539cb76be1c4634e042936a95faf6a",
"class": "File",
"checksum": "sha1$8fa3e78e5eab5a0273c714ec57ba79bc5b046bba",
"size": 8,
"path": "/home/michael//da429be172539cb76be1c4634e042936a95faf6a"
}
}
INFO Final process status is success
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.