[linux] semi-broken `uru ruby` behavior

Issue #11 resolved
Jon repo owner created an issue

broken

jon@ubusvr:~$ uru ruby -e "puts 'hello there'"
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) Server VM 1.7.0_21-b11 [linux-i386]



ruby 2.1.0dev (2013-05-06 trunk 40593) [i686-linux]

working

jon@ubusvr:~$ cat hello.rb
puts 'hello there'

jon@ubusvr:~$ uru ruby hello.rb
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) Server VM 1.7.0_21-b11 [linux-i386]

hello there

ruby 2.1.0dev (2013-05-06 trunk 40593) [i686-linux]

hello there

The expected output for the first scenario is currently what's happening on windows:

cmd.exe:

C:\>uru ruby -e "puts 'hello there'"
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) Client VM 1.7.0_21-b11 +indy [Windows 7-x86]

hello there

ruby 2.0.0p187 (2013-05-08 revision 40602) [i386-mingw32]

hello there

ruby 1.9.3p415 (2013-04-11 revision 40231) [i386-mingw32]

hello there

powershell:

PS > uru ruby -e "puts 'hello there'"
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) Client VM 1.7.0_21-b11 +indy [Windows 7-x86]

hello there

ruby 2.0.0p187 (2013-05-08 revision 40602) [i386-mingw32]

hello there

ruby 1.9.3p415 (2013-04-11 revision 40231) [i386-mingw32]

hello there

Comments (3)

  1. Jon reporter

    Check out whether shell quoting differences are impacting what's stored in the []string generated from os.Getenv("PATH")

  2. Log in to comment