Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel#system with two parameter on Windows fails #1074

Closed
mauricioszabo opened this Issue Oct 2, 2013 · 4 comments

Comments

Projects
None yet
4 participants
@mauricioszabo
Copy link

mauricioszabo commented Oct 2, 2013

On Windows XP 32 bits and JRuby 1.7.4, system doesn't work with more than one parameter. Didn't tested with another versions of windows

irb(main):001:0> system "start", "http://localhost/"
=> nil
irb(main):002:0> `start http://localhost/`
=> ""
irb(main):003:0> system "start http://localhost/"
=> true
@headius

This comment has been minimized.

Copy link
Member

headius commented Oct 9, 2013

It does appear to work ok with JRuby 1.7.5 on OS X. Can you check if 1.7.5 works better for you?

@mauricioszabo

This comment has been minimized.

Copy link
Author

mauricioszabo commented Oct 9, 2013

On JRuby 1.7.4, it already worked on OSX, but not on Windows. This problem is windows-specific. I've tested with 1.7.5, and the problem still exists. I'm attaching a screenshot showing the issue on the new JRuby version

image

When I use system "echo", "Foo", the command does not executes and system returns nil. With only one parameter, it gives the expected result.

@headius headius modified the milestones: JRuby 1.7.12, JRuby 1.7.10 Feb 21, 2014

@KloppsKopp

This comment has been minimized.

Copy link

KloppsKopp commented Apr 11, 2014

On my machine, (win7prof, jruby 1.7.11)
system "echo", "foo" works,
but system "start", "." does nothing.
system "start ." works properly.

@enebo enebo modified the milestones: JRuby 1.7.13, JRuby 1.7.12 Apr 15, 2014

@enebo enebo modified the milestones: JRuby 1.7.14, JRuby 1.7.13 Jun 24, 2014

@enebo enebo modified the milestones: JRuby 1.7.14, JRuby 1.7.15 Aug 27, 2014

headius added a commit that referenced this issue Nov 2, 2014

Merge pull request #2008 from yousuketto/internal_cmd_on_win
Implemented multi args 'system' method on Windows fix #1074
@headius

This comment has been minimized.

Copy link
Member

headius commented Nov 2, 2014

Fixed by #2008.

@headius headius closed this Nov 2, 2014

@headius headius modified the milestones: JRuby 1.7.17, JRuby 1.7.15 Nov 2, 2014

@headius headius self-assigned this Nov 2, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.