I would like to run a python command that return true or false inside a bash script:
#!/usr/bin/env bash Some stuff... boolean = $(python -c "bool(...operations...)") The code above is just to sketch the idea. I need boolean to be false or true (bash boolean values) depending on the result of ...operations.... The code above is not working: boolean results to be an empty variable.