Skip to content

invalid json format err when the shell script contain \ #6

@shumin1027

Description

@shumin1027

when the shell script contain \, unmarshal json string will go wrong
job shell:

#!/bin/bash

#BSUB -n 1
#BSUB -R "span[ptile=24]"
#BSUB -e %J.err
#BSUB -o %J.out
#BSUB -J testjob

echo -e "\nhello, \
\"lsf\""

sleep 5

if the shell script contain some characters that may affect json structure,may trigger unmarshal json string error

image

the fields such as command, job_name most likely to be affected

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