# File lib/rvm/shell/single_shot_wrapper.rb, line 38
      def with_shell_instance(&blk)
        no_current = @current.nil?
        if no_current
          @current = Open3.popen3(self.shell_executable)
          invoke_setup!
        end
        yield
      ensure
        @current = nil if no_current
      end