Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Terraform pleasings incompatible with bash < 4.4 #99

Open
cowfoodbagman opened this issue Jun 29, 2022 · 3 comments
Open

Terraform pleasings incompatible with bash < 4.4 #99

cowfoodbagman opened this issue Jun 29, 2022 · 3 comments

Comments

@cowfoodbagman
Copy link

Pre Bash 4.4 empty array variables are treated as unset. Bash 4.4 changed the behavior:
https://stackoverflow.com/questions/7577052/bash-empty-array-expansion-with-set-u

Current error when running with empty arrays: line 84: deps[@]: unbound variable

@peterebden
Copy link
Contributor

Is this a major concern? Bash 4.4 was released in 2016, it seems reasonable to expect systems to have upgraded by now.

@cowfoodbagman
Copy link
Author

Apparently Amazon didn't get the memo: https://repost.aws/questions/QUz95NYf4bQxyJHwf1RKJ3Iw/process-substitution-not-working-with-linux-2-bash
We use their image for builds.

@andrewkruse
Copy link

The default mac set up also did not get the memo. I unfortunately don't have the understanding of what please is doing to work around it using a python script and would love to be able to prototype some stuff using please.

bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin21)
Copyright (C) 2007 Free Software Foundation, Inc.

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

No branches or pull requests

3 participants