From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.1 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 898F81F6A9 for ; Thu, 3 Jan 2019 20:35:05 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id AC26D121E35; Fri, 4 Jan 2019 05:35:02 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id D036F121E34 for ; Fri, 4 Jan 2019 05:35:00 +0900 (JST) Received: by filter0132p3las1.sendgrid.net with SMTP id filter0132p3las1-30100-5C2E71F1-B 2019-01-03 20:34:57.226585869 +0000 UTC m=+1041.995808230 Received: from herokuapp.com (ec2-54-196-1-221.compute-1.amazonaws.com [54.196.1.221]) by ismtpd0009p1iad2.sendgrid.net (SG) with ESMTP id EikgLQTVRl2rR3P00as7GQ for ; Thu, 03 Jan 2019 20:34:57.043 +0000 (UTC) Date: Thu, 03 Jan 2019 20:34:58 +0000 (UTC) From: richard.schneeman+ruby-lang@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 66302 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15503 X-Redmine-Issue-Author: schneems X-Redmine-Sender: schneems X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS5p3QrNVSN8tktrlQU0XJlAnFLS4bvY374aGk vk9FcQGHolXrTsX6Ik/F/6AwMGw6jH8hWgTxiFE8Mdj307eyzhrBMgIreFgjhN845nr9/VaX+p5Ilw 7RUSaQs1HUcRl+lB17kHD2Go81mal0T4yCiYzDQmc0z0IOu95b57Hjt/iZSsQNUAwIWiw9Of26uDom c= X-ML-Name: ruby-core X-Mail-Count: 90878 Subject: [ruby-core:90878] [Ruby trunk Bug#15503] Error in Ruby 2.6 when trying to shell out to invoke `irb` while in a `bundle exec` session X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #15503 has been reported by schneems (Richard Schneeman). ---------------------------------------- Bug #15503: Error in Ruby 2.6 when trying to shell out to invoke `irb` while in a `bundle exec` session https://bugs.ruby-lang.org/issues/15503 * Author: schneems (Richard Schneeman) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin17] * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- Hello. This script fails on Ruby 2.6 but works successfully with Ruby 2.5: ~~~ cd /tmp mkdir irb-issue cd irb-issue chruby 2.6 echo 'source "https://rubygems.org"' > Gemfile bundle install bundle exec ruby -e 'puts `echo "1 + 1" | irb --simple-prompt`' ~~~ Here is the failure: ~~~ $ bundle exec ruby -e 'puts `echo "1 + 1" | irb --simple-prompt`' Traceback (most recent call last): 2: from /Users/rschneeman/.gem/ruby/2.6.0/bin/irb:23:in `
' 1: from /Users/rschneeman/.rubies/ruby-2.6.0/lib/ruby/2.6.0/bundler/rubygems_integration.rb:482:in `block in replace_bin_path' /Users/rschneeman/.rubies/ruby-2.6.0/lib/ruby/2.6.0/bundler/rubygems_integration.rb:462:in `block in replace_bin_path': can't find executable irb for gem irb. irb is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception) ~~~ -- https://bugs.ruby-lang.org/