bundle

Inherit

bundle help
touch Gemfile
bundle console

Shell

BUNDLE_GEMFILE=x bundle exec /bin/sh
touch Gemfile
bundle exec /bin/sh

This might run the shell twice, one after the other.

echo 'system("/bin/sh")' >Gemfile
bundle install