News for hackers. Stuff that matters.
Re:Show HN: Posixcube, a shell script automation framework a... by schizoidboy on Sunday January 15, 2017 @02:52PM (#13405996)
Yeah, I'll add some of the most common parameter expansion/substitution, string functions, array functions, etc. as APIs.

I had a thought yesterday for handling pipeline failures by using set -e in a sub-shell. I still need to test this, but something like:

  (set -e; command1 | grep foo | grep bar | sed ...) || cube_check_return

There are no comments on this comment yet.