Skip to content

Shell variables are expanded before the script is run #20

@gaddman

Description

@gaddman

When using this plugin shell variables may be expanded before the script is run, depending on the format used.
This will work fine:

#!/usr/bin/env bash

myvar="pickles"
echo "myvar is $myvar"

printing:
myvar is pickles

While this will fail:

#!/usr/bin/env bash

myvar="pickles"
echo "myvar is ${myvar}"

printing:
myvar is

This works fine with the builtin inline script plugin. While the example above is trivial, the second format is used for bash parameter expansions, so those are not possible.

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