canonical / canonical/spread

quoting of environ is wrong

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
127
Forks
81
PR merge metrics
No merged PRs in 30d

Description

If I have an environment value that has double quotes,
```yaml
environment:
foo: 'some "quoted value"'
```
then spread will (incorrectly) do
```sh
export foo="some "quoted value""
```
which sets `foo` to `"some quoted"` and exports `foo` and `value`. This is not what was intended.

What should happen is that spread properly quotes the value. One easy way to do this would be to use `%q`, possibly. I haven't tested this.

Note this also means that all env vars need doubling of backslashes, needlessly.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.