Revision 12200
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
37 | 37 |
|
38 | 38 |
shopt -s expand_aliases |
39 | 39 |
# allow setting vars in the last command of a pipeline |
40 |
shopt -s lastpipe || true # ignore errors if not supported (eg. on Mac)
|
|
40 |
shopt -s lastpipe 2>/dev/null || true # ignore errors if not supported (on Mac)
|
|
41 | 41 |
|
42 | 42 |
|
43 | 43 |
#### stubs |
Also available in: Unified diff
fix: lib/sh/util.sh: `shopt -s lastpipe`: suppress error message if not supported