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

Manual claims that run returns nothing #40155

Merged
merged 2 commits into from
Mar 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Manual claims that run returns nothing
This  manual page claims that `run` returns `nothing`. However, in version v1.5.3, it returns a `Process` object (I'm not sure if it always does).

To reproduce:
```julia
julia> VERSION
v"1.5.3"
julia> typeof(run(`echo`))
Base.Process
```
  • Loading branch information
adomasbaliuka committed Mar 23, 2021
commit 75ccab9a6c4ae25007e3dbcb29d04f74124b3247
2 changes: 1 addition & 1 deletion doc/src/manual/running-external-programs.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ hello
```

The `hello` is the output of the `echo` command, sent to [`stdout`](@ref). The run method itself
returns `nothing`, and throws an [`ErrorException`](@ref) if the external command fails to run
returns `nothing` [No. Actually: `run` (sometimes? always?) returns a `Process`], and throws an [`ErrorException`](@ref) if the external command fails to run
successfully.

If you want to read the output of the external command, [`read`](@ref) or [`readchomp`](@ref)
Expand Down