News for hackers. Stuff that matters.
Re:fork() can fail by pimlottc on Thursday August 21, 2014 @01:07AM (#8205992)
"bash -e" has much the same effect: it basically exits on the first failed command, with considerations for pipelines, conditionals and the like.

http://www.gnu.org/software/bash/manual/bashref.html#index-s...

Re:fork() can fail by pflanze on Thursday August 21, 2014 @01:32AM (#8206036)
Note this recent discussion about bash -e, including my post that "the disappointment with set -e is that it does not work everywhere".

https://news.ycombinator.com/item?id=8054440

Re:fork() can fail by blueskin_ on Thursday August 21, 2014 @04:32AM (#8206433)
It's nice to have, but I wouldn't rely on it to save me - it's no replacement for checking return codes properly.
Re:fork() can fail by pimlottc on Thursday August 21, 2014 @07:52PM (#8210308)
Certainly, but it's a good habit to get into, like ``use strict`` in Perl.
Re:fork() can fail by blueskin_ on Friday August 22, 2014 @06:20AM (#8211519)
"Perl and line noise are distinguishable. Properly written perl starts with 'use strict'; line noise rarely does."