Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env breaks for multi line environments #6

Open
lindt opened this issue Mar 28, 2016 · 2 comments
Open

env breaks for multi line environments #6

lindt opened this issue Mar 28, 2016 · 2 comments

Comments

@lindt
Copy link
Contributor

lindt commented Mar 28, 2016

i've a multi line ENV called

BASH_FUNC=() {  . /usr/share/foo.sh
}

my container will then be called with --env "}"

probably dangerous?

@soulshake
Copy link
Owner

I don't follow. Can you tell me how you're declaring this, so I can test?

@lindt
Copy link
Contributor Author

lindt commented Mar 29, 2016

I've mc installed. it comes with the multi line 'BASH_FUNC_mc%%' ENV.

shell way for producing multi line environments could be the following.

#!/bin/sh

TEST="$(cat <<-EOF
    foo
    bar
    baz
EOF
)"

export TEST=$TEST

env | grep TEST -A 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants