Open BolunThompson opened 1 week ago
Thanks for catching that! Does the PR still hold? I see it is closed? We could also add an ubuntu 24 test in the CI to ensure this is caught.
It does for the main branch, but, in the future branch, the file in question (env_var_utils.py
) has been moved to sh-expand. I just opened another PR in that repo, but I can reopen this PR if there’s a desire to merge it into main.
Thanks, no that is the right approach! I commented on the sh-expand PR.
In Bash 5.2.21,
declare -p
prints the values of shell variables containing escape sequences using ANSI-C quoted strings. This has changed since Bash 5.0.17, in whichdeclare -p
literally writes the control codes. The compiler does not interpret escape sequences when reading in variables. This causes incorrect behavior with Bash 5.2.21. For instance, it interpretsIFS=$' \t\n'
literally, leading to the shell splitting arguments incorrectly.The test suite doesn’t catch this since it runs on Ubuntu 20.04 using (presumably) Bash 5.0.17. However, the tests fail on Ubuntu 24.04 using Bash 5.2.21.
I created a PR with a potential fix in the sh-expand repo.
Tested on: Bash 5.0.17 on Ubuntu 20.04 Bash 5.2.21 on Ubuntu 20.04 & 24.04