Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Auto merge of #4968 - bundler:seg-exec-load-docs, r=indirect
Browse files Browse the repository at this point in the history
Update bundle-exec docs for exec loading

See #4852 @indirect
  • Loading branch information
homu authored and segiddins committed Sep 30, 2016
1 parent de40892 commit ec6355e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions man/bundle-exec.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec6355e

Please sign in to comment.