Skip to content

Commit 200123b

Browse files
committed
Add "eval" to every invocation of "boot2docker shellinit"
See http://unix.stackexchange.com/a/181581 for the rationale behind this change. Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
1 parent 87a8658 commit 200123b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ also update the root docs pages by running
106106
> if you are using Boot2Docker on OSX and the above command returns an error,
107107
> `Post http:///var/run/docker.sock/build?rm=1&t=docker-docs%3Apost-1.2.0-docs_update-2:
108108
> dial unix /var/run/docker.sock: no such file or directory', you need to set the Docker
109-
> host. Run `$(boot2docker shellinit)` to see the correct variable to set. The command
109+
> host. Run `eval "$(boot2docker shellinit)"` to see the correct variable to set. The command
110110
> will return the full `export` command, so you can just cut and paste.
111111
112112
## Cherry-picking documentation changes to update an existing release.

docs/sources/installation/mac.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Initialize and run `boot2docker` from the command line, do the following:
139139

140140
4. To set the environment variables in your shell do the following:
141141

142-
$ $(boot2docker shellinit)
142+
$ eval "$(boot2docker shellinit)"
143143
144144
You can also set them manually by using the `export` commands `boot2docker`
145145
returns.

docs/sources/project/set-up-dev-env.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ environment.
9999
1. Open a terminal.
100100

101101
Mac users, use `boot2docker status` to make sure Boot2Docker is running. You
102-
may need to run `$(boot2docker shellinit)` to initialize your shell
102+
may need to run `eval "$(boot2docker shellinit)"` to initialize your shell
103103
environment.
104104

105105
3. Change into the root of your forked repository.
@@ -202,7 +202,7 @@ build and run a `docker` binary in your container.
202202

203203
![Multiple terminals](/project/images/three_terms.png)
204204

205-
Mac OSX users, make sure you run `$(boot2docker shellinit)` in any new
205+
Mac OSX users, make sure you run `eval "$(boot2docker shellinit)"` in any new
206206
terminals.
207207

208208
2. In a terminal, create a new container from your `dry-run-test` image.

0 commit comments

Comments
 (0)