-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
ioInvolving the I/O subsystem: libuv, read, write, etc.Involving the I/O subsystem: libuv, read, write, etc.
Description
julia version: 1.0.0
julia> readline(`ls`)
ERROR: MethodError: no method matching readline(::Cmd)
Closest candidates are:
readline(::IOStream; keep) at iostream.jl:429
readline() at io.jl:370
readline(::AbstractString; keep) at io.jl:364
...
Stacktrace:
[1] top-level scope at none:0
julia> readlines(`ls`) # readlines work however. I don't see too much difference between the two.
27-element Array{String,1}:
"cpp"
"cronjobs"
...
julia> readline("list") # can read from file
"1468"
Metadata
Metadata
Assignees
Labels
ioInvolving the I/O subsystem: libuv, read, write, etc.Involving the I/O subsystem: libuv, read, write, etc.