Parcourir la source

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 il y a 10 ans
Parent
commit
200123b317
3 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 1
      docs/README.md
  2. 1 1
      docs/sources/installation/mac.md
  3. 2 2
      docs/sources/project/set-up-dev-env.md

+ 1 - 1
docs/README.md

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

+ 1 - 1
docs/sources/installation/mac.md

@@ -139,7 +139,7 @@ Initialize and run `boot2docker` from the command line, do the following:
 
 4. To set the environment variables in your shell do the following:
 
-		$ $(boot2docker shellinit)
+		$ eval "$(boot2docker shellinit)"
 		
 	You can also set them manually by using the `export` commands `boot2docker`
 	returns.

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

@@ -99,7 +99,7 @@ environment.
 1. Open a terminal.
 
     Mac users, use `boot2docker status` to make sure Boot2Docker is running. You
-    may need to run `$(boot2docker shellinit)` to initialize your shell
+    may need to run `eval "$(boot2docker shellinit)"` to initialize your shell
     environment.
 
 3. Change into the root of your forked repository.
@@ -202,7 +202,7 @@ build and run a `docker` binary in your container.
 
     ![Multiple terminals](/project/images/three_terms.png)
 
-    Mac OSX users, make sure you run `$(boot2docker shellinit)` in any new 
+    Mac OSX users, make sure you run `eval "$(boot2docker shellinit)"` in any new 
     terminals.
 
 2. In a terminal, create a new container from your `dry-run-test` image.