You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Derek Baum (JIRA)" <ji...@apache.org> on 2009/07/23 17:51:14 UTC

[jira] Resolved: (FELIX-1403) [gogo] IO redirection does not work for nested executions

     [ https://issues.apache.org/jira/browse/FELIX-1403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Derek Baum resolved FELIX-1403.
-------------------------------

    Resolution: Fixed

changed Pipe.java to remember IO in thread local fields.
Use these thread local values to initialise IO in Pipe constructor.

added tests to testPipe().

> [gogo] IO redirection does not work for nested executions
> ---------------------------------------------------------
>
>                 Key: FELIX-1403
>                 URL: https://issues.apache.org/jira/browse/FELIX-1403
>             Project: Felix
>          Issue Type: Bug
>          Components: Gogo
>            Reporter: Derek Baum
>            Assignee: Derek Baum
>
> example uses karaf, but problem is in gogo runtime:
> karaf@root> osgi:list | grep osgi
> [  18] [Active     ] [           ] [   30] org.osgi.impl.bundle.jmx (4.2.0.200907080519)
> above works as expected.
> now define a closure:
> karaf@root> list = { osgi:list}
> org.apache.felix.gogo.runtime.shell.Closure@23113e
> karaf@root> list | grep osgi
> START LEVEL 100
>    ID   State         Blueprint     Level  Name
> [ snip ]
> output from closure is not piped into grep.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.