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

> not that the command returned 0 but that the file it made exists and is the right length

If a command returns 0 when it didn't really do its job. Shouldn't we fix the command instead of the script?



See the link for examples of bash and posix internals that don’t necessarily operate the way you’d expect.


They operate the way I expect. set -e fails when I don't handle the error code of a command. If my script eat it, it doesn't fail. I see no problems here.




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

Search: