• Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    19 hours ago

    Often “silent” fails are a good thing

    Silent fails have caused me to waste many hours of my time trying to figure out what the fuck was happening with a simple script. I’ve been using -e on nearly all bash code I’ve written for years - with the exception of sourced ones - and wouldn’t go back.

    If an unhandled error happened, I want my program to crash so I can evaluate whether I need to ignore it, or actually handle it.