Skip to content

cwl-runner --verbose output does not properly quote command lines #92

Closed

Description

@jrandall

cwl-runner does not add quotes around command line arguments that contain internal spaces, resulting in an inability to copy-and-paste the command for testing purposes (without adding quotes).

Activity

  1. jrandall commented on Jul 10, 2015

    @jrandall
    MemberAuthor

    For example, it prints:

    docker run -i --volume=/tmp/tmpwSz1fm/demo.aligned.bam:/tmp/job559715942_tmpwSz1fm/demo.aligned.bam:ro --volume=/tmp/
    tmp7xY10k:/tmp/job_output:rw --volume=/tmp/tmpzT6LtX:/tmp/job_tmp:rw --workdir=/tmp/job_output --user=13676 --rm --en
    v=TMPDIR=/tmp/job_tmp 7e0c0ae3bf4e70442f9b8eee816ec23426d9e1169a2925316e5c932745e21613 bash -c cat /tmp/job559715942_
    tmpwSz1fm/demo.aligned.bam | samtools sort -f - aligned.sorted.bam
    

    When in actuality the command it ran was:

    docker run -i --volume=/tmp/tmpwSz1fm/demo.aligned.bam:/tmp/job559715942_tmpwSz1fm/demo.aligned.bam:ro --volume=/tmp/
    tmp7xY10k:/tmp/job_output:rw --volume=/tmp/tmpzT6LtX:/tmp/job_tmp:rw --workdir=/tmp/job_output --user=13676 --rm --en
    v=TMPDIR=/tmp/job_tmp 7e0c0ae3bf4e70442f9b8eee816ec23426d9e1169a2925316e5c932745e21613 bash -c 'cat /tmp/job559715942_
    tmpwSz1fm/demo.aligned.bam | samtools sort -f - aligned.sorted.bam'
    
  2. added a commit that references this issue on Jul 10, 2015
    6c064a4
  3. added a commit that references this issue on Jul 20, 2017
  4. added a commit that references this issue on Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions