Changeset 1550 in svn


Ignore:
Timestamp:
2014-11-07T19:17:52Z (4 years ago)
Author:
Xuefer
Message:

clean, return pipe status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/devel/run

    r1532 r1550  
    1010
    1111hi() { # {{{1
    12     colors=(4 2 3 5 6 7 8 9)
    13     re=()
    14     i=0
     12    local colors=(4 2 3 5 6 7 8 9)
     13    local re=()
     14    local i=0
    1515    for r in "$@"; do
    1616        ((color=$i % ${#colors[@]})) || true
     
    366366        *)
    367367            "$@" | tee output.php
     368            return ${PIPESTATUS[0]}
    368369            ;;
    369370        esac
Note: See TracChangeset for help on using the changeset viewer.