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

#  Detect modification of error stack inside backquotes 
#  which will not affect the stack. (The backslash is 
#  a way to prevent the pattern itself matching the pattern!)
! egrep '(`|\$\().*ERR\STACK.*(`|\))' $(find $ADETEST_MODROOT -type f -name '*.sh')
