Permalink
Switch branches/tags
Commits on Feb 21, 1997
  1. [inseparable changes from patch from perl5.003_27 to perl5.003_28]

     CORE LANGUAGE CHANGES
    
    Subject: Don't let C<sub foo;> undefine &foo
    From: Chip Salzenberg <chip@perl.com>
    Files: op.c
    
    Subject: Make code, doc agree on $ENV{PATH} and `cmd`
    From: Chip Salzenberg <chip@perl.com>
    Files: pod/perlsec.pod pp_sys.c
    
    Subject: Optimize keys() and values() in void context
    From: Chip Salzenberg <chip@perl.com>
    Files: doop.c op.c
    
     CORE PORTABILITY
    
    Subject: VMS patches post _27
    Date: Thu, 20 Feb 1997 01:58:46 -0500 (EST)
    From: Charles Bailey <bailey@HMIVAX.HUMGEN.UPENN.EDU>
    Files: MANIFEST dosish.h hv.c lib/ExtUtils/MM_VMS.pm lib/ExtUtils/xsubpp perl.c perlsdio.h pod/perldelta.pod pod/perlvar.pod t/op/closure.t unixish.h vms/Makefile vms/descrip.mms vms/ext/filespec.t vms/genconfig.pl vms/vms.c vms/vmsish.h
    
        private-msgid: <01IFMEMPN1IU0057E2@hmivax.humgen.upenn.edu>
    
    Subject: Re: OS/2 patch for _27
    Date: Thu, 20 Feb 1997 19:24:16 -0500 (EST)
    From: Ilya Zakharevich <ilya@math.ohio-state.edu>
    Files: INSTALL README.os2 lib/Test/Harness.pm os2/Changes os2/OS2/PrfDB/t/os2_prfdb.t os2/os2.c os2/os2ish.h os2/perl2cmd.pl perl.c pod/perldelta.pod t/TEST t/harness t/op/magic.t
    Msg-ID: <199702210024.TAA03174@monk.mps.ohio-state.edu>
    
        (applied based on p5p patch as commit 833d3f2)
    
     DOCUMENTATION
    
    Subject: INSTALL updates since _26
    Date: Tue, 18 Feb 1997 16:00:08 -0500 (EST)
    From: Andy Dougherty <doughera@fractal.phys.lafayette.edu>
    Files: INSTALL
    Msg-ID: <Pine.SOL.3.95q.970218155815.2014F-100000@fractal.lafayette.e
    
        (applied based on p5p patch as commit a8247d9)
    
    Subject: Document "$$0" change
    From: Chip Salzenberg <chip@perl.com>
    Files: pod/perldelta.pod
    
    Subject: Don't recommend impossible //o for C<$x =~ $y>
    From: Chip Salzenberg <chip@perl.com>
    Files: pod/perlop.pod
    
    Subject: Correct doc that claimed that <FH> was never false
    From: Chip Salzenberg <chip@perl.com>
    Files: pod/perldelta.pod pod/perlop.pod
    
    Subject: Document C<$?> vs. $SIG{CHLD}
    From: Ulrich Pfeifer <pfeifer@charly.informatik.uni-dortmund.de>
    Files: pod/perlvar.pod
    
    Subject: Add pumpkin.pod
    From: Chip Salzenberg <chip@perl.com>
    Files: MANIFEST Porting/pumpkin.pod
    
    Subject: Don't say "associat*ve arr*y"
    From: Chip Salzenberg <chip@perl.com>
    Files: MANIFEST gv.h hv.c lib/Env.pm lib/overload.pm opcode.pl pod/perl.pod pod/perldelta.pod pod/perldiag.pod pod/perlfunc.pod pod/perlguts.pod pod/perlmod.pod pod/perltie.pod pod/perltoc.pod pod/perltrap.pod x2p/a2p.pod
    
     OTHER CORE CHANGES
    
    Subject: Fix a typo
    From: Chip Salzenberg <chip@perl.com>
    Files: pp_sys.c
    
    Subject: Fix perl_call_sv(..., G_NOARGS)
    From: Chip Salzenberg <chip@perl.com>
    Files: perl.c
    
    Subject: Fix SIGSEGV when cloning sub with complex expression
    From: Chip Salzenberg <chip@perl.com>
    Files: op.c
    Perl 5 Porters committed with Chip Salzenberg Feb 21, 1997
  2. INSTALL updates since _26

    Here are my proposed updates to the INSTALL file.  Comments are welcome.
    (I'd particularly welcome an AIX bos.* blurb from someone who understand
    those things.)
    
    It's not all that much, really; just some sections have been moved around
    into what I hope is a more logical order.
    
    p5p-msgid: <Pine.SOL.3.95q.970218155815.2014F-100000@fractal.lafayette.edu>
    private-msgid: <Pine.SOL.3.95q.970218155815.2014F-100000@fractal.lafayette.e
    Andy Dougherty committed with Chip Salzenberg Feb 18, 1997
  3. Add test for grep() and wantarray

    Subject: Re: subscript when wantarray 
    
    In <199702172207.RAA20755@rio.atlantic.net>, Chip Salzenberg writes:
    :First, here's a patch that makes the first case print "2"
    [...]
    :Second, the reason that it prints "2" instead of "3" is that
    :C<(undef)[0]> evaluates to the empty list in an array context,
    :but to C<undef> in a scalar context.  This is on purpose.
    Yep, I expected that.
    
    Patch worked fine here; below is an extra test using the same code as my
    original example.
    
    p5p-msgid: <199702181105.LAA17895@tyree.iii.co.uk>
    Hugo van der Sanden committed with Chip Salzenberg Feb 18, 1997
  4. Re: OS/2 patch for _27

    The bulk of this patch is README.os2 which has a lot of formatting
    stripped (it is at the end). The rest (340 lines of -u) is quite simple.
    
    INSTALL
    	t/harness documented.
    lib/Test/Harness.pm
    	Can test files with -T on hash-bang line.
    	Gets more info from tests which coredump.
    	Will not try to load Devel::CoreStack on each test.
    os2/Changes
    	Updated.
    os2/OS2/PrfDB/t/os2_prfdb.t
    	File closed.
    os2/os2.c
    	Poor-man's setup of environment if DLL run from non-conforming EXE.
    os2/os2ish.h
    	Poor-man's setup of environment if DLL run from non-conforming EXE.
    	ALTERNATE_SHEBANG defined.
    os2/perl2cmd.pl
    	Updated for ALTERNATE_SHEBANG.
    perl.c
    	If ALTERNATE_SHEBANG defined, just ignore -S on the starting
    	line. (It might be already used by OS to start perl.)
    pod/perldelta.pod
    	Malloc's PERL_DEBUG_MSTATS, EMERGENCY_SBR, PACK_MALLOC,
    	TWO_POT_OPTIMIZE documented.
    t/harness
    	Does not require -I../lib any more.
    t/op/magic.t
    	Now works under OS/2 with both tests.
    t/TEST
    	Adds an advice to use 
    		perl harness
    	to get better granularity.
    README.os2
    	A lot of markup stripped (in the hope that smart converters
    	will add it back), minor updates.
    
    p5p-msgid: <199702210024.TAA03174@monk.mps.ohio-state.edu>
    Ilya Zakharevich committed with Chip Salzenberg Feb 21, 1997
  5. Tweak tests to notice $dont_use_nlink

    Chip Salzenberg committed with Chip Salzenberg Feb 17, 1997
  6. Don't run locale test if -DNO_LOCALE

    Chip Salzenberg committed with Chip Salzenberg Feb 17, 1997
  7. Include 'study' in regexp.t

    Chip Salzenberg committed with Chip Salzenberg Feb 19, 1997
  8. prototype error in File::stat

    The prototype for lstat in File::stat is wrong. It stats that is expects
    a GLOB. It should be expecting a scalar, the same as File::stat::stat.
    
    p5p-msgid: <199702180748.HAA14151@ultra-boy>
    Graham Barr committed with Chip Salzenberg Feb 18, 1997
  9. Remove redundant clearerr() from IO::Seekable

    Chip Salzenberg committed with Chip Salzenberg Feb 18, 1997
  10. [dummy merge]

    This merge exists so that the p5p version of the patch and the applied
    version are both in the history
    Chip Salzenberg committed Feb 21, 1997
  11. Avoid $` $& $' in libraries

    (this is the same change as commit 2724d50, but as applied)
    Chip Salzenberg committed Feb 21, 1997
  12. Avoid $` $& $' in libraries

    Subject: Pessimal $` $& $' in libraries
    
    Corrected:
    
    lib/diagnostics.pm
    lib/Getopt/Long.pm
    lib/Pod/Text.pm
    os2/OS2/REXX/REXX.pm
    
    $' $` $& eliminated from all the known *.pm. 
    
    Btw, by this I proudly introduce usage of $+ in standard perl modules ;-).
    
    p5p-msgid: <199702210207.VAA03560@monk.mps.ohio-state.edu>
    Ilya Zakharevich committed with Chip Salzenberg Feb 21, 1997
  13. Debugger patch

    private-msgid: <199702210737.CAA03951@monk.mps.ohio-state.edu>
    Ilya Zakharevich committed with Chip Salzenberg Feb 21, 1997
  14. Fix the Tolkein quote

    Chip Salzenberg committed with Chip Salzenberg Feb 18, 1997
  15. Minor update to malloc.c

    This change of defines may satisfy Nick in his future life, when he
    needs an effecient malloc() with DEBUGGING perl again:
    
    p5p-msgid: <199702210244.VAA03676@monk.mps.ohio-state.edu>
    Ilya Zakharevich committed with Chip Salzenberg Feb 21, 1997
  16. Undo signal patch -- it broke die() in signal

    Chip Salzenberg committed with Chip Salzenberg Feb 18, 1997
  17. No version of AIX has working setre[ug]id()

    Keith Neufeld committed with Chip Salzenberg Feb 18, 1997
  18. New hints for Digital UNIX

    jhi committed with Chip Salzenberg Feb 18, 1997
  19. When overloading, don't throw away nomethod's value

    Ilya Zakharevich committed with Chip Salzenberg Feb 18, 1997
  20. Turn off 'expression tainted' flag at end of runops()

    Chip Salzenberg committed with Chip Salzenberg Feb 18, 1997
  21. Don't taint $x in C<$x = ($tainted =~ /(\w+)/)>

    Chip Salzenberg committed with Chip Salzenberg Feb 19, 1997
  22. [shell changes from patch from perl5.003_27 to perl5.003_28]

    Change from running these commands:
    
     # VMS no longer uses 'make' to build Perl
     rm -f vms/Makefile
     
     # ready to patch
     exit 0
    Chip Salzenberg committed Feb 21, 1997
Commits on Feb 18, 1997
  1. [inseparable changes from patch from perl5.003_26 to perl5.003_27]

     BUILD PROCESS
    
    Subject: Fix eval "" in Configure
    Date: Fri, 14 Feb 1997 13:09:53 -0500
    From: John L. Allen <allen@gateway.grumman.com>
    Files: Configure
    
        Subject: Re: Configure problem on IRIX - me dumb
        
        p5p-msgid: <9702141809.AA17001@gateway.grumman.com>
    
    Subject: Don't link with -lsfio if sfio is not requested
    From: Chip Salzenberg <chip@perl.com>
    Files: Configure
    
    Subject: perl5.003_26 Configure change "win" for AIX 4
    Date: Fri, 14 Feb 1997 13:59:02 -0600 (CST)
    From: Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
    Files: Configure
    
        p5p-msgid: <Pine.OSF.3.95.970214135751.32654A-100000@dogbert.cc.ndsu.NoDak.edu>
        private-msgid: <Pine.OSF.3.95.970214135751.32654A-100000@dogbert.cc.ndsu.NoD
    
     CORE LANGUAGE CHANGES
    
    Subject: Better looks_like_number() function [sv.c]
    Date: Fri, 14 Feb 1997 18:08:52 +0100
    From: Gisle Aas <aas@bergen.sn.no>
    Files: sv.c
    Msg-ID: <199702141708.SAA17546@bergen.sn.no>
    
        (applied based on p5p patch as commit 8dbaa58)
    
    Subject: Remove redundant functions UNIVERSAL::{class,is_instance}
    Date: 14 Feb 1997 15:52:21 +0000
    From: Gisle Aas <aas@bergen.sn.no>
    Files: pod/perldelta.pod pod/perlobj.pod t/op/universal.t universal.c
    Msg-ID: <hwwsbpeq2.fsf@bergen.sn.no>
    
        (applied based on p5p patch as commit 77bb9b2)
    
    Subject: Allow C<setpgrp $$>
    Date: 16 Feb 1997 23:19:12 -0500
    From: Roderick Schertler <roderick@gate.net>
    Files: pp_sys.c
    Msg-ID: <pzraigyshr.fsf@eeyore.ibcinc.com>
    
        (applied based on p5p patch as commit 3d2573a)
    
    Subject: Fix syntax error on C<&$1>
    From: Chip Salzenberg <chip@perl.com>
    Files: toke.c
    
    Subject: Fix grep() with refs in array context
    From: Chip Salzenberg <chip@perl.com>
    Files: pp.c
    
     CORE PORTABILITY
    
    Subject: Eliminate $^S; add C<use vmsish qw(status exit time)>
    Date: Mon, 17 Feb 1997 02:45:26 -0500 (EST)
    From: Charles Bailey <bailey@HMIVAX.HUMGEN.UPENN.EDU>
    Files: MANIFEST gv.c lib/English.pm lib/ExtUtils/MM_VMS.pm lib/ExtUtils/Mksymlists.pm lib/ExtUtils/xsubpp mg.c op.c perl.c perl.h pod/perldelta.pod pod/perlmod.pod pod/perlvar.pod pp_ctl.c pp_sys.c utils/perldoc.PL vms/Makefile vms/config.vms vms/descrip.mms vms/ext/Stdio/Stdio.pm vms/ext/Stdio/Stdio.xs vms/ext/XSSymSet.pm vms/ext/vmsish.pm vms/vms.c vms/vmsish.h win32/makedef.pl
    
        private-msgid: <01IFI9CFKL0S004R2V@hmivax.humgen.upenn.edu>
    
     LIBRARY AND EXTENSIONS
    
    Subject: Remove Fatal.pm
    From: Chip Salzenberg <chip@perl.com>
    Files: MANIFEST lib/Fatal.pm pod/perldelta.pod pod/perlmod.pod pod/roffitall t/lib/fatal.t
    
    Subject: Refresh MakeMaker to 5.40
    From: Andy Dougherty <doughera@lafcol.lafayette.edu>
    Files: lib/ExtUtils/Liblist.pm lib/ExtUtils/MM_Unix.pm lib/ExtUtils/MakeMaker.pm lib/ExtUtils/Mksymlists.pm
    
     OTHER CORE CHANGES
    
    Subject: Fix core dump when embedding
    From: Chip Salzenberg <chip@perl.com>
    Files: perl.c
    
    Subject: Re: Fragile signals
    Date: Thu, 13 Feb 1997 01:44:39 -0500 (EST)
    From: Ilya Zakharevich <ilya@math.ohio-state.edu>
    Files: mg.c
    Msg-ID: <199702130644.BAA07572@monk.mps.ohio-state.edu>
    
        (applied based on p5p patch as commit 09df8c7)
    
    Subject: Make format strings correspond exactly to parameters
    Date: 13 Feb 1997 17:24:31 -0500
    From: Roderick Schertler <roderick@gate.net>
    Files: doio.c ext/DB_File/DB_File.xs ext/Opcode/Opcode.xs gv.c op.c perl.c pp_ctl.c pp_sys.c regcomp.c toke.c
    Msg-ID: <pz7mkc1h0g.fsf@eeyore.ibcinc.com>
    
        (applied based on p5p patch as commit bf81aad)
    
    Subject: Don't try to attach 'o' magic to read-only values
    From: Chip Salzenberg <chip@perl.com>
    Files: sv.c
    
    Subject: Fix carriage-return message
    From: Chip Salzenberg <chip@perl.com>
    Files: toke.c
    
    Subject: In <=>, test for equality first
    From: Chip Salzenberg <chip@perl.com>
    Files: pp.c
    
    Subject: Don't mark sv_{true,false} PADTMP
    From: Chip Salzenberg <chip@perl.com>
    Files: op.c
    Perl 5 Porters committed with Chip Salzenberg Feb 18, 1997
  2. Make format strings correspond exactly to parameters

    Subject: Re: Hereis weirdness in 5.003_26
    
    On Thu, 13 Feb 1997 15:13:18 -0500 (EST), Chip Salzenberg <chip@atlantic.net> said:
    > According to Ilya Zakharevich:
    >> 
    >> Why was not it catched by gcc prototypes?
    > 
    > I don't use gcc.  Does anyone who uses gcc compile with -Wproto ?
    
    -Wformat, you mean.  I wasn't previously, but I will in the future.  It
    turned up a few bugs (some universal, some which would trigger only
    where I32 != int or the like).  I think -Wformat should be added to
    CFLAGS automatically when appropriate.
    
    p5p-msgid: <pz7mkc1h0g.fsf@eeyore.ibcinc.com>
    Roderick Schertler committed with Chip Salzenberg Feb 13, 1997
  3. Fix formatting in perldiag

    Chip Salzenberg committed with Chip Salzenberg Feb 17, 1997
  4. Re: Fragile signals

    Ilya Zakharevich writes:
    > 
    > Some messages of mine get stuck in the chain:
    > 
    >         Nico => Debian => floor
    > 
    > I repost them now:
    > 
    > As you may remember, the following program
    > 
    > #!/usr/bin/perl
    > sub foo { ++$a }
    > $SIG{ALRM} = sub { $run = 0 ; return };
    > while (1) {
    >   $a = 0;
    >   $run = 1;
    >   alarm 1;
    >   foo while $run;
    >   print $i++, ": $a\n";
    > }
    > die "Not reached";
    > __END__
    > 
    > will not call malloc/realloc/free in sighandler, but nevertheless it
    > would not run more than approx. 25 iterations. This shows that 4% of
    > subroutine-calling frame is not signal-safe.
    > 
    > The following patch makes it run approx. twice as long (on _17) (thus
    
    Well, the following patch makes it run 4 times as long. The only
    failure mode I have seen was silent walking off runops().
    
    Here is the statistics (number of iterations before failure):
    
       Before:
                    23, 24, 14, 22, 19, 13, 30, 11
            (4 core dumps, 2 attempts to free unref scalar, 1 panic:
                    leave-scope, 1 silent)
       After:
                    42, 936, 63, 131, 280.
            (all silent)
    
    It looks like handling of internal stacks needs a lot of
    improvement. What this patch does is only a symptomatic treatment, but
    it may go into 004 nevertheless (especially if one can see why op
    becomes 0 at some moment). I tried saving/restoring op in the handler,
    but this does not help...
    
    p5p-msgid: <199702130644.BAA07572@monk.mps.ohio-state.edu>
    Ilya Zakharevich committed with Chip Salzenberg Feb 13, 1997
  5. Update To-Do list

    Subject: Re: Perl Futures (was: Tentative 5.005 and 5.006 schedules)
    
    p5p-msgid: <9702101900.AA25293@toad.ig.co.uk>
    Tim Bunce committed with Chip Salzenberg Feb 10, 1997
  6. Allow C<setpgrp $$>

    Subject: Re: Perl question, re: POSIX setpgrp
    
    On Fri, 14 Feb 1997 16:31:53 GMT, Chris Vo <chrisv@on.bell.ca> said:
    > 
    >>> POSIX setpgrp can't take an argument at ./check_ntp line 21.
    > 
    > where line 21 reads as:
    >       setpgrp (0, $$);
    
    Replace that with just
    
            setpgrp;
    
    This does the same thing and will work on all systems.
    
    I think there's a bug here.  Perl is expecting a pgrp arg of 0 to mean
    $$, but it doesn't allow an explicit $$.  Even this seems a little odd,
    as on neither system I've got available at the moment is it mentioned
    that a 0 pgrp means getpid() (they both mention that a 0 pid means
    getpid(), though).
    
    p5p-msgid: <pzraigyshr.fsf@eeyore.ibcinc.com>
    Roderick Schertler committed with Chip Salzenberg Feb 17, 1997
  7. pod2man: missing '-' in name section shouldn't be fatal

    Subject: pod2man: missing '-' in name section is fatal
    
    p5p-msgid: <yfmzpxcimsa.fsf@ls6.informatik.uni-dortmund.de>
    Ulrich Pfeifer committed with Chip Salzenberg Feb 10, 1997
  8. Remove redundant functions UNIVERSAL::{class,is_instance}

    Nick Ing-Simmons <nik@tiuk.ti.com> writes:
    
    > Loose them!
    
    p5p-msgid: <hwwsbpeq2.fsf@bergen.sn.no>
    Gisle Aas committed with Chip Salzenberg Feb 14, 1997
  9. Remove non-portable locale tests

    Chip Salzenberg committed with Chip Salzenberg Feb 17, 1997
  10. Better looks_like_number() function [sv.c]

    The old looks_like_number() function was too forgiving.  It classified
    strings like these as numbers:
    
       "+"
       "+e+"
       "e3"
       "."
    
    With this patch perl -lwe 'print int(".")' prints:
    
       Argument "." isn't numeric in int at -e line 1.
       0
    
    as it should and perl still passes all its tests.
    
    p5p-msgid: <199702141708.SAA17546@bergen.sn.no>
    Gisle Aas committed with Chip Salzenberg Feb 14, 1997
  11. Refresh Test::Harness to 1.15

    Andreas Koenig committed with Chip Salzenberg Feb 17, 1997