Revision 12872
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
36 | 36 |
#### options |
37 | 37 |
|
38 | 38 |
shopt -s expand_aliases |
39 |
# allow setting vars in the last command of a pipeline
|
|
40 |
shopt -s lastpipe 2>/dev/null || true # ignore errors if not supported (on Mac)
|
|
39 |
# **DON'T** do `shopt -s lastpipe` because this causes a segfault on Linux in
|
|
40 |
# stderr_matches(). (it also isn't supported on Mac.) use @PIPESTATUS instead.
|
|
41 | 41 |
|
42 | 42 |
|
43 | 43 |
#### stubs |
Also available in: Unified diff
bugfix: lib/sh/util.sh: DON'T do `shopt -s lastpipe` because this causes a segfault on Linux in stderr_matches(). (it also isn't supported on Mac.) use @PIPESTATUS instead. note that we do not currently need lastpipe, since we use @PIPESTATUS (which actually provides more functionality for our purposes).