[comp.lang.perl] Perl 3.0 PL27 under Ultrix 3.0 fails io.dup test

wnp@iiasa.AT (wolf paul) (09/11/90)

I just compiled Perl v3.0 PL27 on our VAX running Ultrix 3.0.
It passes all tests except io.dup, where it fails with the symptoms
described by the comments in the following segment from io.dup, with a
couple of lines added to clarify the behavior:

    ...
    open(STDOUT,">&dupout");
    open(STDERR,">&duperr");
    
    print STDOUT "Trying to cat Io.dup\n";      # I added this - it works
    system 'cat Io.dup';                        # This does not work
    system 'cat Io.dup > /dev/tty';             # This does work
    print STDOUT "Done with catting Io.dup\n";  # I added this - it works
    print STDERR "This is stderr\n";            # I added this - it works
    # unlink 'Io.dup';
    
    print STDOUT "ok 6\n";

So, while STDERR and STDOUT seem to get restored properly by the first
two lines shown above, they are then not properly inherited by the
shell spawned by the "system" call.

Has anyone seen this behavior before, and if so, what can be done to
fix it?

On a different topic: I see lots of messages about problems with patch
28. Any reason to install it anyway? 
-- 
Wolf N. Paul, IIASA, A - 2361 Laxenburg, Austria, Europe
PHONE: +43-2236-71521-465     FAX: +43-2236-71313      UUCP: uunet!iiasa.at!wnp
INTERNET: wnp%iiasa.at@uunet.uu.net      BITNET: tuvie!iiasa!wnp@awiuni01.BITNET
       * * * * Kurt Waldheim for President (of Mars, of course!) * * * *

lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (09/11/90)

In article <892@iiasa.UUCP> wnp@iiasa.UUCP (wolf paul) writes:
: I just compiled Perl v3.0 PL27 on our VAX running Ultrix 3.0.
: It passes all tests except io.dup, where it fails with the symptoms
: described by the comments in the following segment from io.dup, with a
: couple of lines added to clarify the behavior:

This was fixed in patch 28.

Larry