Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WISH: user controlled stderr output #2468

Closed
Oldes opened this issue Dec 17, 2021 · 3 comments
Closed

WISH: user controlled stderr output #2468

Oldes opened this issue Dec 17, 2021 · 3 comments
Labels

Comments

@Oldes
Copy link
Owner

Oldes commented Dec 17, 2021

Being able to redirect output to stderr was a long standing wish.

https://stackoverflow.com/questions/27913863/output-to-stderr-in-rebol2
https://www.mail-archive.com/rebolist@rebol.net/msg03802.html

There is also an issue #1862 requesting that errors are automatically redirected to stderr.

@Oldes
Copy link
Owner Author

Oldes commented Dec 17, 2021

Here is required change for a posix systems: Oldes/Rebol3@9c40364

Oldes added a commit to Oldes/Rebol3 that referenced this issue Dec 17, 2021
@Oldes
Copy link
Owner Author

Oldes commented Dec 17, 2021

So far it is implemented as:

print 1 ;<- std_out
modify system/ports/input 'error on
print 2 ;<- std_err
modify system/ports/input 'error off
print 3 ;<- std_out

The name of the port is bad... as it is not just input, but also output.

@Oldes
Copy link
Owner Author

Oldes commented Dec 17, 2021

Any idea for name changing or functionality change is welcome! This work was so far done just as a step to implement this: #1862

@Oldes Oldes added Oldes.resolved Bugs/wishes with Oldes' fixes/features Test.written labels Dec 17, 2021
@Oldes Oldes closed this as completed Dec 21, 2021
Oldes added a commit to Oldes/Rebol3 that referenced this issue Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant