https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1709775478
2011-06-11T16:58:47Z
Ruby Issue Tracking System
Ruby master - Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
https://bugs.ruby-lang.org/issues/4731?journal_id=17774
2011-06-11T16:58:47Z
ko1 (Koichi Sasada)
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>nobu (Nobuyoshi Nakada)</i></li></ul>
Ruby master - Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
https://bugs.ruby-lang.org/issues/4731?journal_id=19160
2011-07-15T11:10:57Z
nobu (Nobuyoshi Nakada)
nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Feedback</i></li></ul><p>I can't reproduce it.<br>
Is irb only a batch file, or an exe file?</p>
Ruby master - Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
https://bugs.ruby-lang.org/issues/4731?journal_id=19169
2011-07-15T21:28:49Z
luislavena (Luis Lavena)
luislavena@gmail.com
<ul></ul><p>Nobuyoshi Nakada wrote:</p>
<blockquote>
<p>I can't reproduce it.<br>
Is irb only a batch file, or an exe file?</p>
</blockquote>
<p>After <code>make install</code> the end result in the indicated prefix is a series of batch files like: irb.bat which contains a mix of windows commands and the Ruby script in it, which is then fired using <code>ruby -x</code></p>
<p>On RubyInstaller we replaced that with plain stubs and the original scripts from Ruby's source code, see here:</p>
<p><a href="https://github.com/oneclick/rubyinstaller/blob/master/recipes/interpreter/ruby19.rake#L146-149" class="external">https://github.com/oneclick/rubyinstaller/blob/master/recipes/interpreter/ruby19.rake#L146-149</a><br>
<a href="https://github.com/oneclick/rubyinstaller/blob/master/recipes/interpreter/ruby19.rake#L156-161" class="external">https://github.com/oneclick/rubyinstaller/blob/master/recipes/interpreter/ruby19.rake#L156-161</a><br>
<a href="https://github.com/oneclick/rubyinstaller/blob/master/recipes/interpreter/ruby19.rake#L182-191" class="external">https://github.com/oneclick/rubyinstaller/blob/master/recipes/interpreter/ruby19.rake#L182-191</a></p>
<p>This workaround was implemented so <code>ruby -S irb</code> works.</p>
Ruby master - Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
https://bugs.ruby-lang.org/issues/4731?journal_id=19193
2011-07-16T19:53:06Z
nobu (Nobuyoshi Nakada)
nobu@ruby-lang.org
<ul><li><strong>ruby -v</strong> changed from <i>ruby 1.9.3dev (2011-05-18 trunk 31614) [i386-mingw32]</i> to <i>-</i></li></ul><p>Hi,</p>
<p>At Fri, 15 Jul 2011 21:28:50 +0900,<br>
Luis Lavena wrote in <a href="/issues/4731">[ruby-core:38075]</a>:</p>
<blockquote>
<p>On RubyInstaller we replaced that with plain stubs and the<br>
original scripts from Ruby's source code, see here:</p>
</blockquote>
<p>I see. There is only irb.bat, not irb sans the suffix. In<br>
that sense, it's natural to fail, but maybe unexpected<br>
behavior. Now I'm thinking to make -S option search with .bat<br>
(and .cmd too) suffix if it is not found. How do you feel<br>
about this?</p>
<p><br>
diff --git a/ruby.c b/ruby.c<br>
index 93b12d8..b8258ea 100644<br>
--- a/ruby.c<br>
+++ b/ruby.c<br>
@@ -1288,14 +1288,42 @@ process_options(int argc, char **argv, struct<br>
cmdline_options *opt)<br>
}<br>
else if (opt->do_search) {<br>
char *path</p>
Ruby master - Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
https://bugs.ruby-lang.org/issues/4731?journal_id=19203
2011-07-17T05:23:06Z
luislavena (Luis Lavena)
luislavena@gmail.com
<ul></ul><p>On Sat, Jul 16, 2011 at 7:46 AM, Nobuyoshi Nakada <a href="mailto:nobu@ruby-lang.org" class="email">nobu@ruby-lang.org</a> wrote:</p>
<blockquote>
<p>I see. Â There is only irb.bat, not irb sans the suffix. Â In<br>
that sense, it's natural to fail, but maybe unexpected<br>
behavior. Â Now I'm thinking to make -S option search with .bat<br>
(and .cmd too) suffix if it is not found. Â How do you feel<br>
about this?</p>
</blockquote>
<p>Thank you Nakada-san, I see a few drawbacks with this approach:</p>
<ul>
<li>
<p>For a missing script (e.g. foo), system will attempt to find two<br>
extra "foo.bat" and "foo.cmd" in all portions of PATH, which will be<br>
expensive.</p>
</li>
<li>
<p>It will introduce a platform-specific discrepancy that other<br>
implementations will either need to implement or indicate that are not<br>
compatible.</p>
</li>
</ul>
<p>I would like to understand why original script is merged with the<br>
batchfile stub in tools/rbinstall.rb</p>
<p>Perhaps we can remove that?</p>
<p>The only reason I see with this is PowerShell, which finds the<br>
extensionless script prior the .bat one and attempts to execute it<br>
(dunno why, but that is what it tries).</p>
<p>For users with PowerShell I've always recommend them use "ruby -S<br>
script" instead.</p>
<a name="Thank-you-for-your-time"></a>
<h2 >Thank you for your time.<a href="#Thank-you-for-your-time" class="wiki-anchor">¶</a></h2>
<h2>Luis Lavena<br>
AREA 17</h2>
<p>Perfection in design is achieved not when there is nothing more to add,<br>
but rather when there is nothing more to take away.<br>
Antoine de Saint-Exupéry</p>
Ruby master - Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
https://bugs.ruby-lang.org/issues/4731?journal_id=19474
2011-07-21T23:23:07Z
nobu (Nobuyoshi Nakada)
nobu@ruby-lang.org
<ul></ul><p>Hi,</p>
<p>At Sun, 17 Jul 2011 05:22:32 +0900,<br>
Luis Lavena wrote in <a href="/issues/4731">[ruby-core:38108]</a>:</p>
<blockquote>
<p>I would like to understand why original script is merged with the<br>
batchfile stub in tools/rbinstall.rb</p>
<p>Perhaps we can remove that?</p>
</blockquote>
<p>Removing the stub, or splitting to a batch file and a script<br>
file?</p>
<blockquote>
<p>The only reason I see with this is PowerShell, which finds the<br>
extensionless script prior the .bat one and attempts to execute it<br>
(dunno why, but that is what it tries).</p>
</blockquote>
<p>The reason is just that one file is handier than two files.<br>
I know nothing about PowerShell.</p>
<p>--<br>
Nobu Nakada</p>
Ruby master - Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
https://bugs.ruby-lang.org/issues/4731?journal_id=19476
2011-07-21T23:23:07Z
luislavena (Luis Lavena)
luislavena@gmail.com
<ul></ul><p>On Thu, Jul 21, 2011 at 11:07 AM, Nobuyoshi Nakada <a href="mailto:nobu@ruby-lang.org" class="email">nobu@ruby-lang.org</a> wrote:</p>
<blockquote>
<p>Hi,</p>
<p>At Sun, 17 Jul 2011 05:22:32 +0900,<br>
Luis Lavena wrote in <a href="/issues/4731">[ruby-core:38108]</a>:</p>
<blockquote>
<p>I would like to understand why original script is merged with the<br>
batchfile stub in tools/rbinstall.rb</p>
<p>Perhaps we can remove that?</p>
</blockquote>
<p>Removing the stub, or splitting to a batch file and a script<br>
file?</p>
</blockquote>
<p>Splitting to back and script file.</p>
<blockquote>
<blockquote>
<p>The only reason I see with this is PowerShell, which finds the<br>
extensionless script prior the .bat one and attempts to execute it<br>
(dunno why, but that is what it tries).</p>
</blockquote>
<p>The reason is just that one file is handier than two files.</p>
</blockquote>
<p>What particular thing are you doing with the files? If I move I move<br>
the entire directory.</p>
<a name="Thank-you"></a>
<h2 >Thank you.<a href="#Thank-you" class="wiki-anchor">¶</a></h2>
<h2>Luis Lavena<br>
AREA 17</h2>
<p>Perfection in design is achieved not when there is nothing more to add,<br>
but rather when there is nothing more to take away.<br>
Antoine de Saint-Exupéry</p>
Ruby master - Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
https://bugs.ruby-lang.org/issues/4731?journal_id=35651
2013-01-26T06:48:57Z
drbrain (Eric Hodel)
drbrain@segment7.net
<ul></ul><p>Luis, Nobu, what is the status of this?</p>
Ruby master - Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
https://bugs.ruby-lang.org/issues/4731?journal_id=35664
2013-01-26T07:07:06Z
luislavena (Luis Lavena)
luislavena@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Assigned</i></li><li><strong>Assignee</strong> changed from <i>nobu (Nobuyoshi Nakada)</i> to <i>luislavena (Luis Lavena)</i></li></ul><p>drbrain (Eric Hodel) wrote:</p>
<blockquote>
<p>Luis, Nobu, what is the status of this?</p>
</blockquote>
<p>I proposed an alternate rbinstall.rb method in <a class="issue tracker-2 status-2 priority-4 priority-default" title="Feature: rbinstall.rb: install both src and batch files separetely (Assigned)" href="https://bugs.ruby-lang.org/issues/6769">#6769</a> that will correct this issue.</p>
<p>However, workload has been high and code in rbinstall.rb is not very clear.</p>
Ruby master - Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
https://bugs.ruby-lang.org/issues/4731?journal_id=54656
2015-10-30T12:38:27Z
luislavena (Luis Lavena)
luislavena@gmail.com
<ul><li><strong>Assignee</strong> changed from <i>luislavena (Luis Lavena)</i> to <i>nobu (Nobuyoshi Nakada)</i></li></ul>
Ruby master - Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
https://bugs.ruby-lang.org/issues/4731?journal_id=66314
2017-08-29T08:43:42Z
hsbt (Hiroshi SHIBATA)
hsbt@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Rejected</i></li></ul><p>I couldn't reproduce this with RubyInstaller 2.4.1-2.</p>