-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
Environment Information
$ jruby -v
jruby 9.2.11.0 (2.5.7) 2020-03-02 612d7a05a6 OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 [linux-x86_64]
$ env | grep JRUBY
JRUBY_OPTS= --dev --debug -J-Xmx1024m
$ env | grep JAVA
JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
$ uname -a
Linux chaba 5.3.0-42-generic #34~18.04.1-Ubuntu SMP Fri Feb 28 13:42:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Expected Behavior
I expect that the following code would behave the same as common ruby, and print "hola" to the screen.
system(Gem.ruby, "-e", "puts('hola')", :chdir => Dir.pwd)
Actual Behavior
Instead, I get
sh: 1: Syntax error: "(" unexpected
Without the :chdir option, it works as expected.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels