From 27ce28247b5be46f65209c9d021a7b44607914af Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Wed, 10 Oct 2012 11:58:48 -0700 Subject: [PATCH] tweaks --- examples/execing-processes/execing-processes.sh | 1 - examples/spawning-processes/spawning-processes.go | 4 ++-- examples/spawning-processes/spawning-processes.sh | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/execing-processes/execing-processes.sh b/examples/execing-processes/execing-processes.sh index 70331ff..7c3e4c5 100644 --- a/examples/execing-processes/execing-processes.sh +++ b/examples/execing-processes/execing-processes.sh @@ -1,6 +1,5 @@ # When we run our program it is replaced by `ls`. $ go run execing-processes.go -$ ls -a -l -h total 16 drwxr-xr-x 4 mark 136B Oct 3 16:29 . drwxr-xr-x 91 mark 3.0K Oct 3 12:50 .. diff --git a/examples/spawning-processes/spawning-processes.go b/examples/spawning-processes/spawning-processes.go index 43fa702..26b1110 100644 --- a/examples/spawning-processes/spawning-processes.go +++ b/examples/spawning-processes/spawning-processes.go @@ -31,8 +31,8 @@ func main() { fmt.Println(string(dateOut)) // Next we'll look at a slightly more involved case - // where we pipe data to the exteranl process on its - // `stdin` and collect the results from `stdout`. + // where we pipe data to the external process on its + // `stdin` and collect the results from its `stdout`. grepCmd := exec.Command("grep", "hello") // Here we explicitly grab input/output pipes, start diff --git a/examples/spawning-processes/spawning-processes.sh b/examples/spawning-processes/spawning-processes.sh index 8050788..a297f5b 100644 --- a/examples/spawning-processes/spawning-processes.sh +++ b/examples/spawning-processes/spawning-processes.sh @@ -1,5 +1,5 @@ # The spawned programs return output that is the same -# as if we had run them directly form the comand-line. +# as if we had run them directly from the command-line. $ go run spawning-processes.go > date Wed Oct 10 09:53:11 PDT 2012