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

RFC: deprecate reading functions that accept both a cmd and stdin #22762

Merged
merged 1 commit into from
Jul 12, 2017

Conversation

JeffBezanson
Copy link
Member

These are strange methods because (1) they violate orthogonality, and (2) they conflict with other uses of the second argument (normally we have read(io, type), but here we have read(cmd, stdin)). I don't think these are widely used.

Also removed the mystery function writeall that doesn't seem to be referenced anywhere.

@JeffBezanson JeffBezanson added deprecation This change introduces or involves a deprecation io Involving the I/O subsystem: libuv, read, write, etc. labels Jul 11, 2017
@fredrikekre
Copy link
Member

ref #18834 and #19975

@tkelman tkelman added the needs news A NEWS entry is required for this change label Jul 11, 2017
return String(read(cmd, stdin))
end

function writeall(cmd::AbstractCmd, stdin::AbstractString, stdout::Redirectable=DevNull)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incorporate #19975 then?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

…uments

remove unused/unexported `writeall`, fixes #18834
@JeffBezanson JeffBezanson removed the needs news A NEWS entry is required for this change label Jul 11, 2017
@JeffBezanson JeffBezanson merged commit 79ea87f into master Jul 12, 2017
@JeffBezanson JeffBezanson deleted the jb/readcmd branch July 12, 2017 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation This change introduces or involves a deprecation io Involving the I/O subsystem: libuv, read, write, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants