22 ms·
I also write my scripts to stay /bin/sh compatible. If this is not enough, then a real scripting language should be used, not bash. But I very much agree that
by fpoling 6y ago
I also write my scripts to stay /bin/sh compatible. If this is not enough, then a real scripting language should be used, not bash.
But I very much agree that lack of pipefail is painful. If I know that output on the left of the pipe is small, I read it into a variable and then use printf | right part. If the output can be big, I use a helper function to emulate it that I copy-paste.