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

var-file flag doesn't do home directory expansion #273

Closed
peterkh opened this issue Sep 8, 2014 · 3 comments
Closed

var-file flag doesn't do home directory expansion #273

peterkh opened this issue Sep 8, 2014 · 3 comments

Comments

@peterkh
Copy link

peterkh commented Sep 8, 2014

Under OSX (haven't tested on other OSs) the command:

terraform plan -var-file=~/.terraform-vars

fails by just displaying the usage message (error message would be helpful as well). Where as:

terraform plan -var-file=/Users/peterkh/.terraform-vars

works fine.

@mitchellh
Copy link
Contributor

This is your shell. Shells only expand I believe if its in double-quotes or on its own as an arg. For example, this will work terraform plan -var-file ~/.terraform-vars. We can add expansion into Terraform itself to just make it work.

@mitchellh mitchellh added the bug label Sep 8, 2014
@peterkh
Copy link
Author

peterkh commented Sep 8, 2014

Yep fair enough, I think that would be good.

@mitchellh
Copy link
Contributor

Fixed

@ghost ghost locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants