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

allow redirect_std* to devnull (#36136) #36146

Merged
merged 5 commits into from
Jun 18, 2020
Merged

allow redirect_std* to devnull (#36136) #36146

merged 5 commits into from
Jun 18, 2020

Conversation

KlausC
Copy link
Contributor

@KlausC KlausC commented Jun 4, 2020

solves #36136 partially.

The methods redirect_std*(io::Base.DevNull) have been added. They redirect to "/dev/null" on non-windows systems and to "NUL" elsewhere.
This allows to call for example redirect_stdout(f, devnull) to supress all output to stdout produced in function call f().
The first argument f is still restricted to ::Function.

@carpenter832

This comment has been minimized.

base/stream.jl Outdated Show resolved Hide resolved
base/stream.jl Outdated Show resolved Hide resolved
@StefanKarpinski
Copy link
Member

Let's get this merged soon if there are no more review comments!

@KlausC
Copy link
Contributor Author

KlausC commented Jun 18, 2020

bump it after a week of silence

@StefanKarpinski StefanKarpinski merged commit 5420dd2 into JuliaLang:master Jun 18, 2020
@KlausC KlausC deleted the krc/redirect-devnull branch June 18, 2020 14:29
simeonschaub pushed a commit to simeonschaub/julia that referenced this pull request Aug 11, 2020
oxinabox added a commit to oxinabox/julia that referenced this pull request Oct 6, 2020
ViralBShah added a commit that referenced this pull request Dec 6, 2020
* Add missing news from #36146

* qualify DevNull

* say devnull

* Update NEWS.md

Co-authored-by: Kristoffer Carlsson <kricarl@student.chalmers.se>

Co-authored-by: Kristoffer Carlsson <kricarl@student.chalmers.se>
Co-authored-by: Viral B. Shah <ViralBShah@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants