From owner-svn-src-head@freebsd.org Tue Apr 4 13:55:41 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 C5EC5D2EEF1; Tue, 4 Apr 2017 13:55:41 +0000 (UTC) (envelope-from kevans91@ksu.edu) Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0052.outbound.protection.outlook.com [104.47.38.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F285A81; Tue, 4 Apr 2017 13:55:40 +0000 (UTC) (envelope-from kevans91@ksu.edu) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ksu.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1tpjkhBIG+I8A8s/jrP2vxgBggD1XSX0/AJgCkIPEn0=; b=WqdSLFA/s5dcEmZLckHBhUeAD+uGsMlRpcgmOEzjGdtPLHuFvEVMbYLuxAPlj8ocXrU/vdJUHhnPvGzuB5lpYB+ydclXY10Y6iv61MYoVa2+Rx3IqZ6cFgkLsU3f7HtF9v6LhHzw78ZcIaY0aoWWDPHEPXxVgEl5bVE5JEfheeQ= Received: from DM5PR05CA0001.namprd05.prod.outlook.com (10.173.226.11) by BN6PR05MB3570.namprd05.prod.outlook.com (10.174.234.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.8; Tue, 4 Apr 2017 13:55:38 +0000 Received: from BL2NAM02FT022.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::204) by DM5PR05CA0001.outlook.office365.com (2603:10b6:3:d4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.8 via Frontend Transport; Tue, 4 Apr 2017 13:55:37 +0000 Authentication-Results: spf=pass (sender IP is 129.130.18.151) smtp.mailfrom=ksu.edu; freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=bestguesspass action=none header.from=ksu.edu; Received-SPF: Pass (protection.outlook.com: domain of ksu.edu designates 129.130.18.151 as permitted sender) receiver=protection.outlook.com; client-ip=129.130.18.151; helo=ome-vm-smtp1.campus.ksu.edu; Received: from ome-vm-smtp1.campus.ksu.edu (129.130.18.151) by BL2NAM02FT022.mail.protection.outlook.com (10.152.77.153) with Microsoft SMTP Server id 15.1.1005.5 via Frontend Transport; Tue, 4 Apr 2017 13:55:37 +0000 Received: from calypso.engg.ksu.edu (calypso.engg.ksu.edu [129.130.43.181]) by ome-vm-smtp1.campus.ksu.edu (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id v34DtbQF023134; Tue, 4 Apr 2017 08:55:37 -0500 Received: by calypso.engg.ksu.edu (Postfix, from userid 110) id 5ACF5248305; Tue, 4 Apr 2017 08:55:37 -0500 (CDT) Received: from mail-wr0-f171.google.com (mail-wr0-f171.google.com [209.85.128.171]) by calypso.engg.ksu.edu (Postfix) with ESMTPA id 003CF248302; Tue, 4 Apr 2017 08:55:34 -0500 (CDT) Received: by mail-wr0-f171.google.com with SMTP id w11so214088341wrc.3; Tue, 04 Apr 2017 06:55:34 -0700 (PDT) X-Gm-Message-State: AFeK/H03YR8nyEGwKYx8Da/7WQHX0V09xkmDm8ZdonteN8KUIxCdT9u865F6UVyTC84PA5NNESfZDlIDNTJ+nw== X-Received: by 10.223.154.54 with SMTP id z51mr201770wrb.76.1491314134083; Tue, 04 Apr 2017 06:55:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.39.134 with HTTP; Tue, 4 Apr 2017 06:55:13 -0700 (PDT) In-Reply-To: References: <201704032316.v33NGpbo037305@repo.freebsd.org> <4ceb1a18-3a72-c0e3-b2e2-f71d687cd153@freebsd.org> <9018c8db-2a89-c8b2-750b-fe11ac08333f@freebsd.org> From: Kyle Evans Date: Tue, 4 Apr 2017 08:55:13 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r316477 - head/usr.bin/grep To: Ed Maste CC: Andrey Chernov , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:129.130.18.151; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39850400002)(39450400003)(39400400002)(39410400002)(39860400002)(39840400002)(2980300002)(438002)(24454002)(377454003)(189002)(199003)(5660300001)(93516999)(63696999)(54356999)(50986999)(6246003)(38730400002)(4326008)(450100002)(6916009)(2950100002)(93886004)(45336002)(229853002)(46386002)(236005)(90966002)(54906002)(498394004)(55446002)(9686003)(53546009)(8676002)(8936002)(59536001)(8576002)(106466001)(61266001)(9896002)(189998001)(88552002)(61726006)(305945005)(84326002)(75432002)(2906002)(86362001)(512874002)(42186005)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR05MB3570; H:ome-vm-smtp1.campus.ksu.edu; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT022; 1:7J3MlJni4TZ9FqSFs1iuxC+uFYFUf1BHRB7Ae86BaVzjy+yF5beurj6cDY5G+MPB3L1J3+Xu9iwnQ3kPP3QGfMIgpa2xzuq0QvKRYfYIMEvuzEfvXGd5kCbK7PBAK7a1wvOWrsAVJyapqngAMtrmXy47eV+u7vtp0P448GSbzftrTc8V9JHEDQN1Sfx2ypcY6WMCYSM8k68PWJ6ziwbHQq2H2UhaFO3HsNvUYUK8TEneI6hFDTct/plyHc0wDJxfsz6N0PnBeIAiG1knLD+PjyUWB5xfiu2H47NjXLKZklaiLLvTAYR6KZRz6u438ctwhXPoDw4fu7SXEPZuZ6p8rmFkwoXqTpd5eLw9rykBkw9CasEv9E2j91vsvOu5eDCF6V27h1dneOjjfms5Cq23SHohs/p/J5PpToZYtFaq/EhN+o3sZICf4N0Rbzhpjtsu/BRGYRK92DU6lZ53+8UCR/aj+J9QP2F70u/L/A8RwkmDQeDyPIv0UIpFBs4vstnK+edWchTKT3jscFVDIZEjpA686EPk1XD7KUCkiZhtU68= X-MS-Office365-Filtering-Correlation-Id: 1071a257-2770-4ed6-d22e-08d47b62460d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BN6PR05MB3570; X-Microsoft-Exchange-Diagnostics: 1; BN6PR05MB3570; 3:ZU7sQpYuTMG5XpaGbcAwe7TfF9tqPqpJWukR4NxjwlShVUtsusqRVSnZlv7nohC/oKNu6TUd0gC4tLEWuEhD6EKvMdWOP6EpBuYo2hOwDNiN6VBxKZU/TIjbI2vPQFRgk3A8Je2zzyqtyBwr2DNl7auQ456KPoRYh/urEAtVYxSHMB34L0hDublitABsLQSC+dTCcjCpj/RRn5UcgDHit8NFxnUETbADhruOK28LjPZD4aWAmWKhMA/Tq/DLsw/vCDx5VTq1XMao36bVVGT1KuAYSsLTJpFjUCqvsvqURN2Bek6xMOjtucgGIv3H2qmkJAcocg8h2r5ab3MkxAvXmlD9yC1r+PHo7HUHin6UG+lrxAgmfabjjjH7sN5HOelvtKFaoZsf1KGLrhcXKnxq681GIzHYLKwY1VZRWgZsKWQfHVlHBkPTC2J4xD8/RwIFBqiJdVAaun/HZ7AtJvLhaat/Tw8j2IZNss+MfSy+a6bSBpxSiHm/PQ/yS2+AQ9+TSnivzKE29bqtnNhYBmoXtg== X-Microsoft-Exchange-Diagnostics: 1; BN6PR05MB3570; 25:EwUvId/AjS6D8rVD3QhS25ZJPWFlzD+6ZVZIHWeppczZxMVBylUUWNU3dS1iqmhsMLDroyIBwNUt72IcOEUuWNESUXOPESq2h7bCiYoM3vz2mXWU29KOgmuW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qshL4LBqSQR/IN5IGridXN6iOLyKNTfoORyRxtxAECPfvuIwr16DPjFcaGXPScdLxVRHZYj81983iWej2gNEXw3jsh3Ipc9o3pAk7ohcoN7dCkMlgxbnUffWkWEntA X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(13017025)(13015025)(13024025)(13023025)(13018025)(5005006)(93006095)(93004095)(3002001)(10201501046)(6041248)(20161123562025)(20161123560025)(201703131423075)(201702281529075)(201702281528075)(201703061421075)(20161123564025)(20161123555025)(6072148); SRVR:BN6PR05MB3570; BCL:0; PCL:0; RULEID:; SRVR:BN6PR05MB3570; X-Microsoft-Exchange-Diagnostics: 1; BN6PR05MB3570; 4:c8sFQTvHkbvrTOQIQHcG4IWPdxAJGbrzpTdC4W2Pz82GCr/gWNntOGRCD2z9rsvDtD9D/oykZ1jzHogiimuzl6sL6op8EaCaos2awHMQ1cVwZm6MiVSxm3jWLQvqMVqFNuilOcZZuB4la+LF9I/dEVEZ3KRRNXGndAN6ccN/qUfWb1zWEQX1il5MKIgYRnZ8vht8l1gUuY9x6uFpTrPwmlX4yJVi+3H/y23fzrTzPzoDPk6PneijX21VKjkIEaW0t9Z5fwJAcHB1QDkA6eSvyWmvisuFyjt4HKDkcHO440YLMj9wkuKlXFPcpF4vqnFivobG+6zK39FdLav84eWDyqGmZTD0YJ99KHwEyCxs1HO6P2pGUeupf3jJFLdiJ5MMFrxd5JTCrRf4amoZ7+mxwPjS8TDL5c1IGeIOXoDmHvj0jTbdRatNonGrK55qh9HHnZuGhveL4bkC/Z66QwZZimhQmFw4KcReeta1g3albIMR8Vf6rr7zgxaW3FiwTcLuJ4bZQl8rnyEQ994DRDq+phrzU7shx1yIKq+nZv0NL3hEj6SDlemM/DCL0HK4gU/JixDD0i7tQHR57sJveRFyZS9qR39y/ZuDGNnbW+FRtDJ7qUWZD5SEhn3dxZiNt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Apr 2017 13:55:37.6998 (UTC) X-MS-Exchange-CrossTenant-Id: d9a2fa71-d67d-4cb6-b541-06ccaa8013fb X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d9a2fa71-d67d-4cb6-b541-06ccaa8013fb; Ip=[129.130.18.151]; Helo=[ome-vm-smtp1.campus.ksu.edu] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR05MB3570 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 13:55:41 -0000 On Tue, Apr 4, 2017 at 8:53 AM, Ed Maste wrote: > In this case I'd rather we remove the 00 and have the test verify > that. I think it's fine if there are a few tests that fail when run > with GNU grep where it has the undesired, differing behaviour. > Excellent- can you please revert this entire bit then: @@ -474,13 +509,13 @@ printline(struct str *line, int sep, reg fwrite(line->dat + a, matches[i].rm_so - a, 1, stdout); if (color) - fprintf(stdout, "\33[%sm\33[K", color); + fprintf(stdout, "\33[%sm", color); fwrite(line->dat + matches[i].rm_so, matches[i].rm_eo - matches[i].rm_so, 1, stdout); if (color) - fprintf(stdout, "\33[m\33[K"); + fprintf(stdout, "\33[00m\33[K"); a = matches[i].rm_eo; if (oflag) putchar('\n'); I'll address this in the unit tests review shortly.