Skip to content

Issue with injected environment variables and subshell commands #211

Description

@naddinadja

When you inject environment variables, either with the config key cijoe.run.env, or via cijoe.run(cmd, env={...}), environment variables are prepended to the command. If the given cmd is a subshell command (e.g. cijoe.run("(cd dir; make)")), prepending the injected environment variables will render the final command invalid.

This could potentially be fixed by changing the way environment variables are injected:

# from
ENV=var <cmd>
# to 
export ENV=var; <cmd>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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