GNU bug report logs - #31182
Grep Not Matching with Caret in First Line of File

Previous Next

Package: grep;

Reported by: "Budin, Clay" <Clay.Budin <at> msg.com>

Date: Mon, 16 Apr 2018 15:54:01 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31182 in the body.
You can then email your comments to 31182 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#31182; Package grep. (Mon, 16 Apr 2018 15:54:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Budin, Clay" <Clay.Budin <at> msg.com>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Mon, 16 Apr 2018 15:54:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Budin, Clay" <Clay.Budin <at> msg.com>
To: "bug-grep <at> gnu.org" <bug-grep <at> gnu.org>
Subject: Grep Not Matching with Caret in First Line of File
Date: Mon, 16 Apr 2018 15:28:37 +0000
[Message part 1 (text/plain, inline)]
Hi,


Running "grep (GNU grep) 3.0" as part of Git for Windows (Git-2.16.2-64-bit.exe)

in bash shell.


It seems like grep isn't matching with a caret (start-of-line) on the first line of a file.


> head <file>

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnitySpeechToText.Utilities;

namespace UnitySpeechToText.Services
{
    /// <summary>
    /// Base class for streaming speech-to-text SDK.
    /// </summary>



> grep "^using" <file>

using System.Collections.Generic;
using UnityEngine;
using UnitySpeechToText.Utilities;

> grep "using" <file>
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnitySpeechToText.Utilities;


Thanks,


Clay Budin

Principal Engineer - Content

MSG Ventures



This message may contain confidential, privileged or proprietary information of the Madison Square Garden Company or its affiliates. If you have received this message in error, please inform the sender by email and kindly delete the message.
[Message part 2 (text/html, inline)]

Information forwarded to bug-grep <at> gnu.org:
bug#31182; Package grep. (Sat, 21 Apr 2018 20:57:02 GMT) Full text and rfc822 format available.

Message #8 received at 31182 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Budin, Clay" <Clay.Budin <at> msg.com>, 31182 <at> debbugs.gnu.org
Subject: Re: bug#31182: Grep Not Matching with Caret in First Line of File
Date: Sat, 21 Apr 2018 13:56:36 -0700
I don't observe the problem in upstream grep, so quite possibly this is a 
packaging issue in Git for Windows. I suggest reporting the bug there.




Information forwarded to bug-grep <at> gnu.org:
bug#31182; Package grep. (Sat, 21 Apr 2018 21:33:02 GMT) Full text and rfc822 format available.

Message #11 received at 31182 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 31182 <at> debbugs.gnu.org, "Budin, Clay" <Clay.Budin <at> msg.com>
Subject: Re: bug#31182: Grep Not Matching with Caret in First Line of File
Date: Sat, 21 Apr 2018 14:32:15 -0700
tags 31182 notabug
close 31182
stop

On Sat, Apr 21, 2018 at 1:56 PM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> I don't observe the problem in upstream grep, so quite possibly this is a
> packaging issue in Git for Windows. I suggest reporting the bug there.

Thanks, and by the above, I'm closing this and marking it as "notabug"
in our tracker. However, you're welcome to continue any discussion
here.




Information forwarded to bug-grep <at> gnu.org:
bug#31182; Package grep. (Mon, 30 Apr 2018 19:48:02 GMT) Full text and rfc822 format available.

Message #14 received at 31182 <at> debbugs.gnu.org (full text, mbox):

From: Benno Schulenberg <bensberg <at> telfort.nl>
To: 31182 <at> debbugs.gnu.org
Cc: bug-grep <at> gnu.org
Subject: bug#31182: Grep Not Matching with Caret in First Line of File
Date: Mon, 30 Apr 2018 21:41:18 +0200
Budin, Clay wrote:
> It seems like grep isn't matching with a caret (start-of-line) on the first 
> line of a file.
Most likely you have a BOM (Byte Order Mark) on the first line.

(It would be cool, though, if grep could ignore that mark.)

Benno




Added tag(s) notabug. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Wed, 01 Jan 2020 07:39:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 31182 <at> debbugs.gnu.org and "Budin, Clay" <Clay.Budin <at> msg.com> Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Wed, 01 Jan 2020 07:39:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 29 Jan 2020 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 81 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.