]> sourceware.org Git - lvm2.git/commit
Do not break pipes
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 28 Jan 2011 16:08:39 +0000 (16:08 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 28 Jan 2011 16:08:39 +0000 (16:08 +0000)
commit8f0b0fea66e9f96eae26a9f0d121858851f2d7b1
treea7b6af67561d0295fd533a30d280df3447a93f01
parenta222da04560e4bf6120410c9fc32e68fe3016626
Do not break pipes

As the option 'set -e -o pipefail' is very sensite on pipe breaking
stop using '-q' for grep commands.

Otherwise this command (with large enough table) would fail:

 dmsetup table | egrep -q

with exit code 141 (128 + SIGPIPE)

As Peter suggested, he prefers to keep '-o pipefail' - so make sure all
piped commands will read the whole output and will not exit too early.
test/lib/check.sh
This page took 0.034397 seconds and 5 git commands to generate.