From owner-svn-src-head@freebsd.org Tue Apr 4 12:07:48 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A37BD2EDE0 for ; Tue, 4 Apr 2017 12:07:48 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f65.google.com (mail-lf0-f65.google.com [209.85.215.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 09C03DFF for ; Tue, 4 Apr 2017 12:07:47 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f65.google.com with SMTP id v2so15349933lfi.2 for ; Tue, 04 Apr 2017 05:07:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=2GpFCjcriEOHhIcu31VpcA3IiXFUoW5VwM7zCtBHDXo=; b=oqj0YKhD4tu/J8CFvCdWuL2pyhkVVwrFUwtl7nvbNusqQNjmGfG8w4MUTMBf3rxPZK kLDzi504ZDaJIYeMBZw2zh6CDQp7h/RyMypa+KchnQjJgnDImfc9JoautXMoG9iAxXNf f563hzTnoTttP4y+ncCPaDHcqn2bmnEJZmN+Y+GU5Iq956fgtv0m5iFm9Uoj2xEASS7s TOdZQNFYfHM+YXWSUSfP9Pfnw/yH8ul/dHm5mFqSYHBHgzYQSp1Ugcbse/7xwdSgTD/G C/5ledyGfrg6cB5b8h0OAwcyG7hMCSaD4/O0MqlnloH6FpqZwP+YipY+2/tuY+cJMioa PVnw== X-Gm-Message-State: AFeK/H0Nmrkf/3q6yd5f8P3Z8FbvjW77cffb/OFEr+xOrgIGwpfsS6JzpzeST0LP5BFI1A== X-Received: by 10.25.43.8 with SMTP id r8mr6287137lfr.41.1491307660231; Tue, 04 Apr 2017 05:07:40 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id d72sm3074032lfe.58.2017.04.04.05.07.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Apr 2017 05:07:39 -0700 (PDT) Subject: Re: svn commit: r316477 - head/usr.bin/grep To: Ed Maste , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201704032316.v33NGpbo037305@repo.freebsd.org> From: Andrey Chernov Message-ID: <4ceb1a18-3a72-c0e3-b2e2-f71d687cd153@freebsd.org> Date: Tue, 4 Apr 2017 15:07:38 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <201704032316.v33NGpbo037305@repo.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2017 12:07:48 -0000 On 04.04.2017 2:16, Ed Maste wrote: > if (color) > - fprintf(stdout, "\33[m\33[K"); > + fprintf(stdout, "\33[00m\33[K"); Please back that one out. We don't need to handle internally or print remotely excessive 00. At least according to https://en.wikipedia.org/wiki/ANSI_escape_code "With no parameters, CSI m is treated as CSI 0 m (reset / normal), which is typical of most of the ANSI escape sequences."