From owner-svn-src-all@freebsd.org Tue Apr 4 12:07:48 2017 Return-Path: Delivered-To: svn-src-all@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 5AC06D2EDE1 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 09BB5DFE 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 n78so15323511lfi.3 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=ZT0qrbb0r8C/EC+4+f48jHpaffLmLNSKQr42WpSMHkKy7q13FsQLEDbXbrlZx51UIX 7DB+oKpKRHZKRAh7mQM2yOgUUOnpals2L/6yYBVkCw2kAD62jXiripm458Kl+Jb7Fz7J gQFaGXVtBpR4nPc3Th0mRK1i5rolUSj5zh7yeWMP4zVEXXawaK0KY4NqbyFcnTqsNFek MsMCcKUjc4DuOw65Icm6KdCc4wRdw8QcgXp7vmBnQwLUi5uDxbSm3VpdY6854dShwh32 emRrqMfIQu2G1PpojxBU0Q8oUyry5G7jeNF6s69XrRQWU/H0w8tRHvrB7n5pmn3HZeXY 7QIA== X-Gm-Message-State: AFeK/H2TofpE+iEi3dWIjFOoU1ih/4Vfafwx3q8X/km8vxBq2CyuFJAIBFwSeR5jlcbWAA== 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-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" 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."