Hacker News new | ask | show | jobs
by shikoba 1560 days ago
> 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?

1 comments

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.