diff options
Diffstat (limited to 'tests/func.tests')
-rw-r--r-- | tests/func.tests | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/func.tests b/tests/func.tests index fffe3d2b..e35ec2b8 100644 --- a/tests/func.tests +++ b/tests/func.tests @@ -11,6 +11,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # +# since we look at functions below, remove all functions now +funcs=$(compgen -A function) +if [ -n "$funcs" ]; then + unset -f $funcs +fi + a() { x=$((x - 1)) |