summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-09-11 17:51:47 +0200
committerSamuel Giddins <segiddins@segiddins.me>2016-09-11 17:51:47 +0200
commitc2235433a04f1ddc78322255505259f85c34508d (patch)
treef45d017e50dcd3d029f0a856e100cf2f358ea871
parenteb20f97d8e52175cd2004159c5ee46dcc1f89d7e (diff)
downloadbundler-seg-exec-load-docs.tar.gz
Update bundle-exec docs for exec loadingseg-exec-load-docs
-rw-r--r--man/bundle-exec.ronn9
1 files changed, 9 insertions, 0 deletions
diff --git a/man/bundle-exec.ronn b/man/bundle-exec.ronn
index ba6844c5c2..c9ab2309e4 100644
--- a/man/bundle-exec.ronn
+++ b/man/bundle-exec.ronn
@@ -63,6 +63,15 @@ It also modifies Rubygems:
making system executables work
* Add all gems in the bundle into Gem.loaded_specs
+### Loading
+
+By default, when attempting to `bundle exec` to a file with a ruby shebang,
+Bundler will `Kernel.load` that file instead of using `Kernel.exec`. For the
+vast majority of cases, this is a performance improvement. In a rare few cases,
+this could cause some subtle side-effects (such as dependence on the exact
+contents of `$0` or `__FILE__`) and the optimization can be disabled by enabling
+the `disable_exec_load` setting.
+
### Shelling out
Any Ruby code that opens a subshell (like `system`, backticks, or `%x{}`) will