clink icon indicating copy to clipboard operation
clink copied to clipboard

env breaks for multi line environments

Open lindt opened this issue 8 years ago • 2 comments

i've a multi line ENV called

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

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

probably dangerous?

lindt avatar Mar 28 '16 23:03 lindt

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

soulshake avatar Mar 28 '16 23:03 soulshake

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

lindt avatar Mar 29 '16 00:03 lindt