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

issues passing values with whitespace to config:set #1520

Open
James-Quigley opened this issue May 18, 2020 · 0 comments
Open

issues passing values with whitespace to config:set #1520

James-Quigley opened this issue May 18, 2020 · 0 comments

Comments

@James-Quigley
Copy link

What is the current behavior?

If typing manually into the shell, I can type something like:
heroku config:set FOO=bar SPACE="Acme Corp" FIZZ=buzz
This works correctly!

However if I have a file with KV pairs such as:

FOO=bar
SPACE="Acme Corp"
FIZZ=buzz

and run heroku config:set $(cat <file>), I get the error:
'Corp" is invalid. Must be in the format FOO=bar.'

How can I get these KV pair into the config:set command correctly? There's gotta be a way to properly pass the entries with spaces into this command that I'm missing

I also tried putting all the KV entries on one line separated by spaces. It really feels like this command should accept input from stdin so I can redirect the file in or something.

What is the expected behavior?

I would expect it to function the same as if you input the values manually, and to parse the entry as SPACE="Acme Corp", instead it is parsing as SPACE="Acme and Corp" separately.

heroku --version

heroku/7.41.1 darwin-x64 node-v12.16.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

1 participant