diff options
| author | aiju <aiju@phicode.de> | 2011-08-27 11:19:54 +0200 |
|---|---|---|
| committer | aiju <aiju@phicode.de> | 2011-08-27 11:19:54 +0200 |
| commit | 1ba43dd3696e76fefc2efbf2500ebd0594502887 (patch) | |
| tree | 037ea77651d15baabcd04e2e7052db74e90aa2fc /rc | |
| parent | 98e3d4b1a51feb39d5f51fe932ba33246e62d245 (diff) | |
| download | plan9front-1ba43dd3696e76fefc2efbf2500ebd0594502887.tar.xz | |
rewrote xargs in C; implemented parallelization
Diffstat (limited to 'rc')
| -rwxr-xr-x | rc/bin/xargs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/rc/bin/xargs b/rc/bin/xargs deleted file mode 100755 index 4255b3440..000000000 --- a/rc/bin/xargs +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/rc -fn usage { - echo usage: $0 [-n num] program [arguments] - exit usage -} -rfork e -ifs=' -' -nargs=1 -while(~ $1 -*) { - switch($1) { - case -n - nargs=$2 - shift 2 - case * - echo bla - usage - } -} -while(x = `{read -n $nargs}) - $* $x -if(! ~ $#x 0) - $* $x |
