#!/bin/bash # $HeadURL$ $LastChangedRevision$ # Detect calls to wait without specifying a pid to wait for. # The problem with 'wait' is that if a script runs a coprocess # then that is waited for, which is probably not the intent. # Test scripts *are* allowed to use wait without parameters. ! egrep -n 'wait *($|\|\||2?>|;|")' $(find $ADETEST_MODROOT -path $ADETEST_MODROOT/tests/bin -prune -o -type f -name '*.sh' -print)