You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Francois Papon (JIRA)" <ji...@apache.org> on 2017/10/13 17:13:00 UTC
[jira] [Commented] (KARAF-5420) Bad console behavior when dealing
with the input stream with the exec command
[ https://issues.apache.org/jira/browse/KARAF-5420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16203876#comment-16203876 ]
Francois Papon commented on KARAF-5420:
---------------------------------------
Hi,
This command don't work, I don't know if it's related to this issue :
{code:java}
karaf@root()> history | grep cave
grep: java.lang.ArrayIndexOutOfBoundsException: 29
{code}
But this command work's :
{code:java}
karaf@root()> history | exec grep cave
1149 feature:repo add cave
1150 feature:repo-add cave
1151 feature:install cave-server
1152 feature:install cave-storage
{code}
*grep* work's only with *exec* after *history*
However, *grep* work's without exec with *feature:list*
{code:java}
karaf@root()> feature:list | grep -i cave
cave-server │ 4.0.1.SNAPSHOT │ x │ Started │ karaf-cave-4.0.1-SNAPSHOT │
cave-storage │ 4.0.1.SNAPSHOT │ │ Started │ karaf-cave-4.0.1-SNAPSHOT │
{code}
Tested on SNAPSHOT from Jenkins : apache-karaf-4.2.0-20171012.141014-387
> Bad console behavior when dealing with the input stream with the exec command
> -----------------------------------------------------------------------------
>
> Key: KARAF-5420
> URL: https://issues.apache.org/jira/browse/KARAF-5420
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 4.2.0
> Reporter: Guillaume Nodet
> Assignee: Guillaume Nodet
> Fix For: 4.2.0
>
>
> The following command behaves correctly:
> {code}
> echo foo | grep o
> {code}
> However, the following one never ends:
> {code}
> echo foo | exec grep o
> {code}
> The following ones also behaves incorrectly (enter does not print a new line, and Ctrl+C / Ctrl+D are not handled correctly) :
> {code}
> grep o
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)