muvlon,
@muvlon@hachyderm.io avatar

@nogweii @simontatham @Rob_Russell @hendric Yep! There are some pitfalls though, which is why I sometimes do opt out of pipefail.

Example: if foo | grep -q "bar"; then ... is something you might like to use. The -q makes grep quiet, i.e. it won't print matches. However! It will also make grep exit (successfully) on the first match. That by itself is fine, but it also closes grep's stdin, so if foo checks for errors, it might fail now. And with pipefail, your if is now never taken!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • everett
  • DreamBathrooms
  • osvaldo12
  • magazineikmin
  • khanakhh
  • InstantRegret
  • Youngstown
  • tacticalgear
  • slotface
  • rosin
  • modclub
  • kavyap
  • thenastyranch
  • GTA5RPClips
  • megavids
  • mdbf
  • ethstaker
  • Durango
  • cisconetworking
  • ngwrru68w68
  • normalnudes
  • tester
  • cubers
  • provamag3
  • Leos
  • anitta
  • JUstTest
  • lostlight
  • All magazines