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

open(<command>, "w") does not return a pipe #24649

Closed
bicycle1885 opened this issue Nov 19, 2017 · 0 comments · Fixed by #25563
Closed

open(<command>, "w") does not return a pipe #24649

bicycle1885 opened this issue Nov 19, 2017 · 0 comments · Fixed by #25563
Labels
io Involving the I/O subsystem: libuv, read, write, etc.

Comments

@bicycle1885
Copy link
Member

open(`cmd`, "w") now return only a process object, and a pipe object is not returned.

~/v/julia (master|…) $ ./julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.7.0-DEV.2528 (2017-11-18 19:55 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 6e4f2fa226* (0 days old master)
|__/                   |  x86_64-apple-darwin16.7.0

julia> open(`ls`, "w")
Process(`ls`, ProcessExited(0))

I'm surprised because this change happened without any deprecation from Julia 0.6.1.

~/v/julia (master|…) $ julia
o               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.1 (2017-10-24 22:15 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-apple-darwin14.5.0

julia> open(`ls`, "w")
(Pipe(RawFD(21) open => RawFD(-1) closed, 0 bytes waiting), Process(`ls`, ProcessExited(0)))

Is this intentional or a bug? I cannot find a topic that refers to this change and the docstring is not updated.

@JeffBezanson JeffBezanson added the io Involving the I/O subsystem: libuv, read, write, etc. label Nov 19, 2017
bicycle1885 added a commit to bicycle1885/julia that referenced this issue Jan 15, 2018
bicycle1885 added a commit to bicycle1885/julia that referenced this issue Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
io Involving the I/O subsystem: libuv, read, write, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants