Gentoo Archives: gentoo-dev

From: David Leverton <levertond@××××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] multiprocessing.eclass: doing parallel work in bash
Date: Sat, 02 Jun 2012 09:53:08
Message-Id: 4FC9E241.3060203@googlemail.com
In Reply to: [gentoo-dev] multiprocessing.eclass: doing parallel work in bash by Mike Frysinger
Mike Frysinger wrote:
> exec {mj_control_fd}<>${mj_control_pipe}
I'll have to remember that feature, but unfortunately it's new in bash 4.1, so unless we're giving up 3.2 as the minimum for the tree....
> : $(( ++mj_num_jobs ))
Any reason not to do just (( ++mj_num_jobs )) ?
> : $(( --mj_num_jobs ))
> : $(( ret |= $? ))
Same.

Replies