Browse code

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>

Tianon Gravi authored on 2015/03/17 09:21:32
Showing 3 changed files
... ...
@@ -106,7 +106,7 @@ also update the root docs pages by running
106 106
 > if you are using Boot2Docker on OSX and the above command returns an error,
107 107
 > `Post http:///var/run/docker.sock/build?rm=1&t=docker-docs%3Apost-1.2.0-docs_update-2:
108 108
 > 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
110 110
 > will return the full `export` command, so you can just cut and paste.
111 111
 
112 112
 ## Cherry-picking documentation changes to update an existing release.
... ...
@@ -139,7 +139,7 @@ Initialize and run `boot2docker` from the command line, do the following:
139 139
 
140 140
 4. To set the environment variables in your shell do the following:
141 141
 
142
-		$ $(boot2docker shellinit)
142
+		$ eval "$(boot2docker shellinit)"
143 143
 		
144 144
 	You can also set them manually by using the `export` commands `boot2docker`
145 145
 	returns.
... ...
@@ -99,7 +99,7 @@ environment.
99 99
 1. Open a terminal.
100 100
 
101 101
     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
103 103
     environment.
104 104
 
105 105
 3. Change into the root of your forked repository.
... ...
@@ -202,7 +202,7 @@ build and run a `docker` binary in your container.
202 202
 
203 203
     ![Multiple terminals](/project/images/three_terms.png)
204 204
 
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 
206 206
     terminals.
207 207
 
208 208
 2. In a terminal, create a new container from your `dry-run-test` image.