Skip to content
Closed
Changes from all commits
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
24 changes: 12 additions & 12 deletions std/process.d
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,7 @@ enum Config
By default, the child process inherits the parent's environment,
and any environment variables passed to $(LREF spawnProcess) will
be added to it. If this flag is set, the only variables in the
child process' environment will be those given to spawnProcess.
child process's environment will be those given to spawnProcess.
*/
newEnv = 1,

Expand Down Expand Up @@ -2023,7 +2023,7 @@ input, output and/or error streams.

$(D pipeProcess) and $(D pipeShell) are convenient wrappers around
$(LREF spawnProcess) and $(LREF spawnShell), respectively, and
automate the task of redirecting one or more of the child process'
automate the task of redirecting one or more of the child process's
standard streams through pipes. Like the functions they wrap,
these functions return immediately, leaving the child process to
execute in parallel with the invoking process. It is recommended
Expand Down Expand Up @@ -2222,7 +2222,7 @@ private ProcessPipes pipeProcessImpl(alias spawnFunc, Cmd, ExtraSpawnFuncArgs...

/**
Flags that can be passed to $(LREF pipeProcess) and $(LREF pipeShell)
to specify which of the child process' standard streams are redirected.
to specify which of the child process's standard streams are redirected.
Use bitwise OR to combine flags.
*/
enum Redirect
Expand Down Expand Up @@ -2341,49 +2341,49 @@ struct ProcessPipes
}

/**
An $(REF File, std,stdio) that allows writing to the child process'
An $(REF File, std,stdio) that allows writing to the child process's
standard input stream.

Throws:
$(OBJECTREF Error) if the child process' standard input stream hasn't
$(OBJECTREF Error) if the child process's standard input stream hasn't
been redirected.
*/
@property File stdin() @safe nothrow
{
if ((_redirectFlags & Redirect.stdin) == 0)
throw new Error("Child process' standard input stream hasn't "
throw new Error("child process's standard input stream hasn't "
~"been redirected.");
return _stdin;
}

/**
An $(REF File, std,stdio) that allows reading from the child process'
An $(REF File, std,stdio) that allows reading from the child process's
standard output stream.

Throws:
$(OBJECTREF Error) if the child process' standard output stream hasn't
$(OBJECTREF Error) if the child process's standard output stream hasn't
been redirected.
*/
@property File stdout() @safe nothrow
{
if ((_redirectFlags & Redirect.stdout) == 0)
throw new Error("Child process' standard output stream hasn't "
throw new Error("child process's standard output stream hasn't "
~"been redirected.");
return _stdout;
}

/**
An $(REF File, std,stdio) that allows reading from the child process'
An $(REF File, std,stdio) that allows reading from the child process's
standard error stream.

Throws:
$(OBJECTREF Error) if the child process' standard error stream hasn't
$(OBJECTREF Error) if the child process's standard error stream hasn't
been redirected.
*/
@property File stderr() @safe nothrow
{
if ((_redirectFlags & Redirect.stderr) == 0)
throw new Error("Child process' standard error stream hasn't "
throw new Error("child process's standard error stream hasn't "
~"been redirected.");
return _stderr;
}
Expand Down