cs50 / check50

This is check50, a command-line program with which you can check the correctness of your programs.
GNU General Public License v3.0
401 stars 268 forks source link

bash env packing #343

Open patrickthornton opened 3 months ago

patrickthornton commented 3 months ago

loads "bash -c {command}" with env by prepending export commands; unfortunately, given pexpect's API, i don't see a cleaner way to do this. previous method of including environment in check50's command didn't work due to bash's environment taking precedence. should allow check50 to work on C programs on new macs if they troubleshoot things like https://github.com/cs50/cs50.readthedocs.io/pull/169. passes all tests on my machine except two skipped valgrind tests