Fix saving of STDOUT during system() in lib/perl5db.pl:
authorJason A. Smith <smithj4@rpi.edu>
Fri, 6 Feb 1998 17:47:08 +0000 (12:47 -0500)
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>
Thu, 12 Feb 1998 16:09:26 +0000 (16:09 +0000)
Subject: Perl debugger.

p4raw-id: //depot/perl@501

lib/perl5db.pl

index f0774bc..9048ed2 100644 (file)
@@ -1386,7 +1386,7 @@ sub system {
     # We save, change, then restore STDIN and STDOUT to avoid fork() since
     # many non-Unix systems can do system() but have problems with fork().
     open(SAVEIN,"<&STDIN") || &warn("Can't save STDIN");
-    open(SAVEOUT,">&OUT") || &warn("Can't save STDOUT");
+    open(SAVEOUT,">&STDOUT") || &warn("Can't save STDOUT");
     open(STDIN,"<&IN") || &warn("Can't redirect STDIN");
     open(STDOUT,">&OUT") || &warn("Can't redirect STDOUT");
     system(@_);