Incorrect handling of STDIN redirect by system() and friends
------------------------------------------------------------

                 Key: JRUBY-1457
                 URL: http://jira.codehaus.org/browse/JRUBY-1457
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.x
         Environment: trunk rev 4652, Ubuntu 7 Linux
            Reporter: Alexey Verkhovsky
            Assignee: Thomas E Enebo
            Priority: Minor


system() treats < as an argument, not as an STDIN redirect.

[EMAIL PROTECTED]:~/src/jruby$ jruby -e "system %{jruby -e 'puts gets' < 
/etc/passwd}"
-e:1: < (No such file or directory) (IOError)
[EMAIL PROTECTED]:~/src/jruby$ ruby -e "system %{ruby -e 'puts gets' < 
/etc/passwd}"
root:x:0:0:root:/root:/bin/bash


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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