]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/func.tests
bash-5.2 distribution sources and documentation
[thirdparty/bash.git] / tests / func.tests
index fffe3d2b38aebdc2d01143fc1072179bc795f5b8..e35ec2b85260e17c4cd91505400fc1b4c416cc7e 100644 (file)
 #   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))