Project

General

Profile

« Previous | Next » 

Revision 12196

lib/sh/util.sh: set `shopt -s lastpipe`, to allow setting vars in the last command of a pipeline

View differences:

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 || true # ignore errors if not supported (eg. on Mac)
39 41

  
40 42

  
41 43
#### stubs

Also available in: Unified diff