4 ms·
> I can't stand pipefail Can you elaborate on this? I'm finding it difficult to think up a case where I would want a script to continue executing if a command
by cellularmitosis 6y ago
> I can't stand pipefail
Can you elaborate on this? I'm finding it difficult to think up a case where I would want a script to continue executing if a command in the middle of a pipeline failed.
- aidenn0 6y agofoo | head -n20 foo may or may not return an error due to the pipe closing, and it's not necessarily consistent each time, particularly if the output of foo is very close to what head will consume.