Skip to content

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

Merged
JeffBezanson merged 1 commit into
masterfrom
jb/readcmd
Jul 12, 2017
Merged

RFC: deprecate reading functions that accept both a cmd and stdin#22762
JeffBezanson merged 1 commit into
masterfrom
jb/readcmd

Conversation

@JeffBezanson

Copy link
Copy Markdown
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
Copy Markdown
Member

ref #18834 and #19975

@tkelman tkelman added the needs news A NEWS entry is required for this change label Jul 11, 2017
Comment thread base/process.jl
return String(read(cmd, stdin))
end

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

Copy link
Copy Markdown
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
Copy Markdown
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