At 12:41 PM -0500 8/28/01, Steven Ames wrote:
>From: "David O'Brien" <[EMAIL PROTECTED]>
>> > I'll submit a PR for it if you believe thats appropriate.
>>
>> I am afraid, this would just cause people to forget about the problem
>> rather than to continue pursuing the problem.
>
>Looks like Mark Peek found the problem and already submitted the
>solution to the tcsh folks. Very nice!

Just to follow up, Christos debugged the problem further on one of my test systems and 
he came up with this official patch. Since this file is on a vendor branch, I have a 
query to wiser committers to see how to apply this patch.

Mark

-----
Index: tc.func.c
===================================================================
RCS file: /src/pub/tcsh/tc.func.c,v
retrieving revision 3.96
retrieving revision 3.97
diff -u -u -r3.96 -r3.97
--- tc.func.c   2001/08/06 23:52:04     3.96
+++ tc.func.c   2001/08/28 23:13:44     3.97
@@ -1,4 +1,4 @@
-/* $Header: /src/pub/tcsh/tc.func.c,v 3.96 2001/08/06 23:52:04 christos Exp $ */
+/* $Header: /src/pub/tcsh/tc.func.c,v 3.97 2001/08/28 23:13:44 christos Exp $ */
 /*
  * tc.func.c: New tcsh builtins.
  */
@@ -36,7 +36,7 @@
  */
 #include "sh.h"
 
-RCSID("$Id: tc.func.c,v 3.96 2001/08/06 23:52:04 christos Exp $")
+RCSID("$Id: tc.func.c,v 3.97 2001/08/28 23:13:44 christos Exp $")
 
 #include "ed.h"
 #include "ed.defns.h"          /* for the function names */
@@ -1296,8 +1296,11 @@
                            tmp->next->prev = tmp->prev;
                            xfree((ptr_t) tmp->word);
                            del = tmp;
+                           tmp = tmp->next;
                            xfree((ptr_t) del);
                        }
+                       we = tmp;
+                       continue;
                    }
                }
            }

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to