tee bug 7th and 8th process eating 10th and 11th process input

Fri, 20 Apr 2018 17:46:20 EDT
joe9mail@[REDACTED]

Hello,

The 7th and 8th processes get 2 times the output and the 10th and the 11th processes do not get any.

Below is the test script to recreate this behaviour.

!/bin/rc

echo ‘testing’ |\ tee -a \ >{cat > /tmp/1.test} \ >{cat > /tmp/2.test} \ >{cat > /tmp/3.test} \ >{cat > /tmp/4.test} \ >{cat > /tmp/5.test} \ >{cat > /tmp/6.test} \ >{cat > /tmp/7.test} \ >{cat > /tmp/8.test} \ >{cat > /tmp/9.test} \ >{cat > /tmp/10.test} \ >{cat > /tmp/11.test} \ >/dev/null

echo ‘done’

—————————— output

1 [glenda] - --rw-r----- M 960 glenda glenda        8 Apr 17 14:14 6.test
1 [glenda] - --rw-r----- M 960 glenda glenda        8 Apr 17 14:14 5.test
1 [glenda] - --rw-r----- M 960 glenda glenda       16 Apr 17 14:14 8.test
0 [glenda] - --rw-r----- M 960 glenda glenda        0 Apr 17 14:14 10.test
0 [glenda] - --rw-r----- M 960 glenda glenda        0 Apr 17 14:14 11.test
1 [glenda] - --rw-r----- M 960 glenda glenda        8 Apr 17 14:14 4.test
1 [glenda] - --rw-r----- M 960 glenda glenda        8 Apr 17 14:14 3.test
1 [glenda] - --rw-r----- M 960 glenda glenda        8 Apr 17 14:14 2.test
1 [glenda] - --rw-r----- M 960 glenda glenda        8 Apr 17 14:14 1.test
1 [glenda] - --rw-r----- M 960 glenda glenda       16 Apr 17 14:14 7.test
1 [glenda] - --rw-r----- M 960 glenda glenda        8 Apr 17 14:14 9.test

Thanks