1
0
mirror of https://github.com/livingcomputermuseum/pdp7-unix.git synced 2026-02-04 23:55:22 +00:00

According to cat.s, fd 8 is standard error (not fd2!). I've updated

the a7out simulator to have STDERR on fd 8.
This commit is contained in:
Warren Toomey
2016-02-26 22:37:03 +10:00
parent 8143fc55e6
commit d6d4c9b814

View File

@@ -50,6 +50,7 @@ sub load_code {
# Set up two file open filehandles
$FD[0] = \*STDIN;
$FD[1] = \*STDOUT;
$FD[8] = \*STDERR; # According to cat.s (uses d8 == 8)
# Open up the file
open( my $IN, "<", $filename ) || die("Unable to open $filename: $!\n");