Skip to content

SC2016 gives false positive in parameter substitution #501

@bittorf

Description

@bittorf
#!/bin/sh
VAR=foo
echo "${VAR:+TEXT='$VAR'}"

it outputs here correctly: TEXT='foo'
(hitted it in a here-document, where we write out hmtl-code, e.g.

#!/bin/sh
cat <<EOF
<body ${font_color:+ LINK='$font_color' VLINK='$font_color' ALINK='$font_color'}>
EOF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions