Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeh you'd have to do something like

    foo=true
    bar=false

    $($foo) && $($bar); baz=$?
    case $baz in
    1) echo false;;
    0) echo true;;
    esac
It just ain't worth it.


Yeah, that's very convoluted. It would be useful to have some context for boolean expressions, similarly how $((...)) works for numeric ones.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: