#!/bin/bash
#  $HeadURL: http://dione.no-ip.org/svn/ade/tags/1.7.6/lib/tests/bin/ADESTDTEST305_shell_scripts_dont_call_wait_without_parameters.sh $ $LastChangedRevision: 5591 $

#  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.
! egrep -n 'wait  *($|\|\||2?>|;|")' $(find $ADETEST_MODROOT -type f -name '*.sh')
