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

> Bash bugs erase your entire file system.

    EMPTY=""
    rm -rf $EMPTY/
Is this the kind of bug you're referring to?

> The thing about Bash is that it is trivially easy to make these sorts of mistakes

I fail to see how any other scripting language would have a different effect when you told it to do:

    system("rm -rf "+""+"/")
> the language just isn't suitable to general purpose scripting.

Yes, it is. Bash is deeper than it looks, but not by much. Learn how to handle errors and you'll be fine.



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

Search: