Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

help to write parallelized scripts

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 Makefile
Octocat-spinner-32 README
Octocat-spinner-32 brackets.c
This program could has two names: [[ [[[
[[ ]] is sequential (not required)
[[[ ]]] is parallel
both of them are also used as command quote.

SEE Makefile

if [[ and/or [[[ is used by shell builtin command, use `brackets` as argv[0]

sh script equivalent for simple case:
	unset pids
	cmds="1 2 3 4"
	for cmd in $cmds; do
	echo ${cmd} &
	pids="$pids $!"
	pwait $pids

	(but what if process terminates and another process with same pid is executed before pwait?
	though pid is not likely to collide.)
Something went wrong with that request. Please try again.