Path: utzoo!mnetor!uunet!husc6!hao!ames!elroy!devvax!lroot From: lroot@devvax.JPL.NASA.GOV (The Superuser) Newsgroups: comp.sources.bugs Subject: perl 1.0 patch #21 Message-ID: <1241@devvax.JPL.NASA.GOV> Date: 6 Feb 88 08:58:23 GMT Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 899 Summary: This is an official patch for perl 1.0. Please apply it. System: perl version 1.0 Patch #: 21 Priority: varied Subject: /foo/i && s//bar/; TEST nonportabilities; bare blocks can blow core From: jbs@EDDIE.MIT.EDU (Jeff Siegal) From: psivax!uunet!hocpb!rer (Rick Richardson) From: mlm@ei.ecn.purdue.edu (Michael L. McLean) From: lwall@jpl-devvax.jpl.nasa.gov (me) Description: TEST didn't find subtests if . wasn't in $PATH. Some of the tests depended on the existence of /etc/termcap, which isn't guaranteed. The construct "/foo/ && s//bar/" didn't work as intended, so certain sed scripts didn't work right when translated to perl. There was no way to get at the code for doing case-insensitive searches, so I added an i modifier. Null loops and blocks (which are loops that execute just once) did not pop the loop label off the stack properly. Hence perl would dump core eventually on "perl -n -e '{print;}' #define PATCHLEVEL 21 Index: t/TEST Prereq: 1.0.1.2 *** t/TEST.old Sat Feb 6 00:31:03 1988 --- t/TEST Sat Feb 6 00:31:04 1988 *************** *** 1,6 **** #!./perl ! # $Header: TEST,v 1.0.1.2 88/02/04 00:14:07 root Exp $ # This is written in a peculiar style, since we're trying to avoid # most of the constructs we'll be testing for. --- 1,6 ---- #!./perl ! # $Header: TEST,v 1.0.1.3 88/02/06 00:24:22 root Exp $ # This is written in a peculiar style, since we're trying to avoid # most of the constructs we'll be testing for. *************** *** 23,34 **** } $bad = 0; while ($test = shift) { ! if ($test =~ /.*\.orig$/) { next; } print "$test..."; if ($sharpbang) { ! open(results,"$test|") || (print "can't run.\n"); } else { open(script,"$test") || die "Can't run $test"; $_ =