Is there any solution in bash to this C (and some other language) "function"?
condition ? true_value : false_value
Only need a simple check: if a variable is 0, return a value else return an other value.
EDIT Thanks for answers but I want a similar:
./configure ${want_foo=1 ? --enable-foo : --disable-foo}
Is it possible or any workaround?