"jruby -e" looses newline characters
------------------------------------

                 Key: JRUBY-6175
                 URL: https://jira.codehaus.org/browse/JRUBY-6175
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6
         Environment: Under Linux:

$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

            Reporter: Xuân Baldauf
            Assignee: Thomas E Enebo


Run

bq. ruby -e "$(echo -ne 'puts "a"\nputs "b"')"

as well as

bq. jruby -e "$(echo -ne 'puts "a"\nputs "b"')"

(The first one being an MRI.)

The first one has as output

{quote}
a
b
{quote}

However, the second one has as output


{quote}
SyntaxError: -e:1: syntax error, unexpected tIDENTIFIER

puts "a" puts "b"
             ^
{quote}

While the first one is probably correct.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to