Skip to content

Commit 061773c

Browse files
committed
CHANGE: have system/ports/output to be same as system/ports/input (instead of none)
related to: Oldes/Rebol-issues#2472 Oldes/Rebol-issues#2468
1 parent c474d05 commit 061773c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mezz/sys-ports.reb

+2-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@ init-schemes: func [
358358
]
359359

360360
system/ports/system: open [scheme: 'system]
361-
system/ports/input: open [scheme: 'console]
361+
system/ports/input:
362+
system/ports/output: open [scheme: 'console]
362363
system/ports/callback: open [scheme: 'callback]
363364

364365
init-schemes: 'done ; only once

src/tests/units/call-test.r3

+1-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ rebol-cmd: func[cmd][
7878
===start-group=== "Error pipe"
7979
--test-- "User controlled error output"
8080
;@@ https://github.com/Oldes/Rebol-issues/issues/2468
81-
; the port should be renamed from `input` to `io` or `console`, because it is not just an input!!
82-
--assert 0 = rebol-cmd {--do "prin 1 modify system/ports/input 'error on prin 2 modify system/ports/input 'error off prin 3"}
81+
--assert 0 = rebol-cmd {--do "prin 1 modify system/ports/output 'error on prin 2 modify system/ports/output 'error off prin 3"}
8382
--assert "13" = out-buffer
8483
--assert "2" = err-buffer
8584

0 commit comments

Comments
 (0)