Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D720118DE7 for ; Fri, 29 Apr 2016 13:07:13 +0000 (UTC) Received: (qmail 83326 invoked by uid 500); 29 Apr 2016 13:07:13 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 83306 invoked by uid 500); 29 Apr 2016 13:07:13 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 82904 invoked by uid 99); 29 Apr 2016 13:07:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2016 13:07:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 39E552C1F74 for ; Fri, 29 Apr 2016 13:07:13 +0000 (UTC) Date: Fri, 29 Apr 2016 13:07:13 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-4511) grep leaves around Ansi reset char sequence MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-4511?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 updated KARAF-4511: ---------------------------------------- Priority: Minor (was: Major) > 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=C3=A9 > Priority: Minor > Fix For: 4.1.0, 4.0.6 > > > {{grep}} command, injects an Ansi char sequence to close the markup/highl= ighting 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/2e2b9324d4a65076b119239edc892018= 5914dc60/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)