Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!david From: david@utzoo.UUCP (David Trueman) Newsgroups: hacknews Subject: sh(1) bug fix and size reduction Message-ID: <5768@utzoo.UUCP> Date: Tue, 9-Jul-85 16:38:28 EDT Article-I.D.: utzoo.5768 Posted: Tue Jul 9 16:38:28 1985 Date-Received: Tue, 9-Jul-85 16:38:28 EDT Organization: U of Toronto Zoology Lines: 14 There was a bug in the built-in expr in the recently installed shell. When doing a regular expression match using parentheses to select a substring, memory corruption was occurring. The (very nasty) symptom was the creation of a file with an unspeakable name, containing garbage. This version also has a smaller data size due to dynamically allocating the buffer for reading directories. The smaller data size results in faster loading of a new shell. The directory-scanning code should use the directory(3) routines, but I've yet to resolve some internal conflicts. At least with this change, all the directory accesses are isolated in one place, making a future change to the library routines easier. -- David Trueman @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!david