about summary refs log tree commit diff
path: root/tests/locking.builder.sh
blob: 69967e08badc1bb8db344e798e586548e8316e81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export PATH=/bin:/usr/bin:$PATH

env

sleep 3

touch $out
echo CAT1
cat $inputs
echo CAT2
echo -n $(cat $inputs)$text
echo CAT3


# Use `>>'; without proper locking this will cause text duplication.
echo -n $(cat $inputs)$text >> $out

sleep 2