karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4511) grep leaves around Ansi reset char sequence
Date Tue, 23 Aug 2016 06:58:20 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15432258#comment-15432258
] 

ASF subversion and git services commented on KARAF-4511:
--------------------------------------------------------

Commit ed36a4eacc6071183dfa21d4b5c466fa2f1590ca in karaf's branch refs/heads/karaf-4.0.x from
[~paolo.antinori]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=ed36a4e ]

[KARAF-4511] grep, fixed '--color never' support


> grep leaves around Ansi reset char sequence
> -------------------------------------------
>
>                 Key: KARAF-4511
>                 URL: https://issues.apache.org/jira/browse/KARAF-4511
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 4.0.5
>            Reporter: Paolo Antinori
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 4.1.0, 4.0.6
>
>
> {{grep}} command, injects an Ansi char sequence to close the markup/highlighting of the
found token.
> It shouldn't do it when the command is invoked with the {{--color never}} flag.
> The current erroneous behavior, produces this output:
> {code}
> echo abc | grep --color never
> abXc
> {code}
> where {{X}} is the Ansi reset sequence, injected here:
> https://github.com/jboss-fuse/karaf/blob/2e2b9324d4a65076b119239edc8920185914dc60/shell/commands/src/main/java/org/apache/karaf/shell/commands/impl/GrepAction.java#L144



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message