lix/tests/locking.builder.sh
2005-09-13 14:07:22 +00:00

18 lines
243 B
Bash

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