[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix for 2.99.27 interpreter blowing its memory..




-------------------------------------------------------------
bash# /p/gnu/bin/diff -u ../libsh/interpret.c{~,}
--- ../libsh/interpret.c~       Mon Mar  4 00:35:46 1996
+++ ../libsh/interpret.c        Tue Jun  4 18:46:02 1996
@@ -1735,7 +1735,6 @@
                        if (command->memlevel && command->rval == NULL
                            && command->buffer == NULL
                            && command->iocmd != ioIntoBuffer) {
-setlevel(MEM_SHCMD, command->memlevel); /* void routines clean their memory */
                                if (command->pgrp > 0)
                                        jc_report(command->pgrp);
                        }
-------------------------------------------------------------

ZMSH script like following one did blow up:

	for x in $(/bin/cat /etc/group)
	do
		...
	done

now it works...

	/Matti Aarnio <mea@nic.funet.fi>