Python as a shell replacement
Python as a shell replacement
Posted Dec 13, 2019 17:23 UTC (Fri) by BenHutchings (subscriber, #37955)In reply to: Python as a shell replacement by marcH
Parent article: Creating Kubernetes distributions
I also use "set -e" by habit, but it doesn't do exactly what you probably want. When you check the result of a command, that completely suppresses its effect inside the command. For example:
set -e
f() {
false
echo "continued"
}
f || echo "failed"
prints:
continued
