You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terraform_data.long_exec (local-exec): Executing: ["bash" "-c" "echo (most of string omitted from paste)ThisIsAVeryLongStringThisIsAVeryLongStringThisIsAVeryLongString;\r\necho Hello\r\n"]
terraform_data.long_exec (local-exec): (most of string omitted from paste)ThisIsAVeryLongStringThisIsAVeryL
Expected Behavior
The command should have failed with an error.
Actual Behavior
The command was cut off at the 8191 character limit of cmd.exe. See the output above ending with "ThisIsAVeryL" and not including the "echo hello", despite the command including it.
The actual use-case where we encountered this bug was using "echo $foo > $bar" where $foo was a very long string, and in this case it printed the first 8181 characters of $foo rather than writing them to $bar.
Steps to Reproduce
terraform init
terraform apply
Additional Context
Terraform is being run inside git bash.
Bash also has a limit, but "getconf ARG_MAX" returns 32000 both inside git bash and inside the interpreter command which is well above the amount of characters we're passing in even when you include "env | wc -c".
References
No response
The text was updated successfully, but these errors were encountered:
Thanks for this feature request! If you are viewing this issue and would like to indicate your interest, please use the 👍 reaction on the issue description to upvote this issue. We also welcome additional use case descriptions.
Terraform Version
Terraform Configuration Files
Debug Output
terraform_data.long_exec (local-exec): Executing: ["bash" "-c" "echo (most of string omitted from paste)ThisIsAVeryLongStringThisIsAVeryLongStringThisIsAVeryLongString;\r\necho Hello\r\n"]
terraform_data.long_exec (local-exec): (most of string omitted from paste)ThisIsAVeryLongStringThisIsAVeryL
Expected Behavior
The command should have failed with an error.
Actual Behavior
The command was cut off at the 8191 character limit of cmd.exe. See the output above ending with "ThisIsAVeryL" and not including the "echo hello", despite the command including it.
The actual use-case where we encountered this bug was using "echo $foo > $bar" where $foo was a very long string, and in this case it printed the first 8181 characters of $foo rather than writing them to $bar.
Steps to Reproduce
Additional Context
Terraform is being run inside git bash.
Bash also has a limit, but "getconf ARG_MAX" returns 32000 both inside git bash and inside the interpreter command which is well above the amount of characters we're passing in even when you include "env | wc -c".
References
No response
The text was updated successfully, but these errors were encountered: