From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id BA76A19600C2 for ; Wed, 8 Jul 2015 19:54:33 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id C5B94B5D9AD for ; Wed, 8 Jul 2015 20:21:35 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 30B1197A838 for ; Wed, 8 Jul 2015 20:21:38 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6yXfasr2czYS for ; Wed, 8 Jul 2015 20:21:38 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 0485F97A82C for ; Wed, 8 Jul 2015 20:21:38 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 5FFDD952448 for ; Wed, 8 Jul 2015 20:21:35 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id E014212045D; Wed, 8 Jul 2015 20:21:33 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id 38A72120433 for ; Wed, 8 Jul 2015 20:21:29 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=0fI7f9rMwRJWwQtCfHxjrz7aCt0=; b=E7Exl+bZh90ePF9aVJ 5VsILhnoEf+vJUPQ2Dmy2aSxekn48bLl6OAxvlLRxIIitdw7iVoWir5zX2/isvxz dloiQ4s4okLQShNX7ZdPZTFlfDYEmGZrM4EPzpfP7xLMNN4EebqkSZu3ORoIkvd6 F9qZ3WAkUJfu07rP7HIbTDwXo= Received: by filter0588p1mdw1.sendgrid.net with SMTP id filter0588p1mdw1.6673.559D07B12C 2015-07-08 11:21:22.022786755 +0000 UTC Received: from herokuapp.com (ec2-54-161-237-219.compute-1.amazonaws.com [54.161.237.219]) by ismtpd-033 (SG) with ESMTP id 14e6d660f0e.11b3.4344da for ; Wed, 08 Jul 2015 11:21:21 +0000 (UTC) Date: Wed, 08 Jul 2015 11:21:21 +0000 From: jekader@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 44510 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11316 X-Redmine-Issue-Author: jekader X-Redmine-Sender: jekader 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS6AlJa+WmhGGHGsyp0LbXNaKpIApDrxQ4JVS3 3O/CDujHtfk5PQBhqC4OpZJHR2vhP4WN0sm+VHRfCXjfc46vanhIvV7U9BnVwiPws0+9EfRNK5FnHG UZILPZflk1lzr+21vfGD8NQMMpyIrC9wf/kN X-ML-Name: ruby-core X-Mail-Count: 69900 Subject: [ruby-core:69900] [Ruby trunk - Bug #11316] ruby 2.2 on Windows generates incorrect BAT files for gems 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: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11316 has been updated by Jeka Der. Update: just tested with rubygems 2.4.8 and it generates BAT files correctly. I hope this version is planned for inclusion into Windows builds of ruby. ---------------------------------------- Bug #11316: ruby 2.2 on Windows generates incorrect BAT files for gems https://bugs.ruby-lang.org/issues/11316#change-53318 * Author: Jeka Der * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [i386-mingw32] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- In Ruby 2.2 on Windows it's impossible to install the "rhc" gem since the BAT wrapper has a typo. steps to reproduce: 1) install ruby 2.2.2 into a directory with spacer (C:\Program Files\ruby22) 2) install git 3) open console and install "rhc" gem: ~~~ Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Windows\system32>ruby -v ruby 2.2.2p95 (2015-04-13 revision 50295) [i386-mingw32] C:\Windows\system32>gem install rhc Fetching: open4-1.3.4.gem (100%) Successfully installed open4-1.3.4 Fetching: httpclient-2.6.0.1.gem (100%) Successfully installed httpclient-2.6.0.1 Fetching: highline-1.6.21.gem (100%) Successfully installed highline-1.6.21 Fetching: commander-4.2.1.gem (100%) Successfully installed commander-4.2.1 Fetching: archive-tar-minitar-0.5.2.gem (100%) Successfully installed archive-tar-minitar-0.5.2 Fetching: net-ssh-2.9.2.gem (100%) Successfully installed net-ssh-2.9.2 Fetching: net-ssh-gateway-1.2.0.gem (100%) Successfully installed net-ssh-gateway-1.2.0 Fetching: net-ssh-multi-1.2.1.gem (100%) Successfully installed net-ssh-multi-1.2.1 Fetching: net-scp-1.2.1.gem (100%) Successfully installed net-scp-1.2.1 Fetching: rhc-1.35.4.gem (100%) =========================================================================== If this is your first time installing the RHC tools, please run 'rhc setup' =========================================================================== Successfully installed rhc-1.35.4 Parsing documentation for open4-1.3.4 Installing ri documentation for open4-1.3.4 Parsing documentation for httpclient-2.6.0.1 Installing ri documentation for httpclient-2.6.0.1 Parsing documentation for highline-1.6.21 Installing ri documentation for highline-1.6.21 Parsing documentation for commander-4.2.1 Installing ri documentation for commander-4.2.1 Parsing documentation for archive-tar-minitar-0.5.2 Installing ri documentation for archive-tar-minitar-0.5.2 Parsing documentation for net-ssh-2.9.2 Installing ri documentation for net-ssh-2.9.2 Parsing documentation for net-ssh-gateway-1.2.0 Installing ri documentation for net-ssh-gateway-1.2.0 Parsing documentation for net-ssh-multi-1.2.1 Installing ri documentation for net-ssh-multi-1.2.1 Parsing documentation for net-scp-1.2.1 Installing ri documentation for net-scp-1.2.1 Parsing documentation for rhc-1.35.4 Installing ri documentation for rhc-1.35.4 Done installing documentation for open4, httpclient, highline, commander, archiv e-tar-minitar, net-ssh, net-ssh-gateway, net-ssh-multi, net-scp, rhc after 17 se conds 10 gems installed ~~~ 4) try to run it: ~~~ C:\Windows\system32>rhc --help '""C:\My' is not recognized as an internal or external command, operable program or batch file. ~~~ here's rhc.bat: ~~~batch @ECHO OFF IF NOT "%~f0" == "~f0" GOTO :WinNT @""C:\Program Files\ruby22\bin\ruby.exe" "C:/Program Files/ruby22/bin/rhc" %1 %2 %3 %4 %5 %6 %7 %8 %9 GOTO :EOF :WinNT @""C:\Program Files\ruby22\bin\ruby.exe" "%~dpn0" %* ~~~ To make this work I had to remove the extra double quote in the last line: ~~~batch @"C:\Program Files\ruby22\bin\ruby.exe" "%~dpn0" %* ~~~ -- https://bugs.ruby-lang.org/