GNU bug report logs - #41262
Weird behavior with grep regex

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: grep; Reported by: <loic.tregouet@HIDDEN>; Keywords: notabug; dated Thu, 14 May 2020 14:38:02 UTC; Maintainer for grep is bug-grep@HIDDEN.

Message received at 41262 <at> debbugs.gnu.org:


Received: (at 41262) by debbugs.gnu.org; 14 May 2020 18:52:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 14 14:52:23 2020
Received: from localhost ([127.0.0.1]:34824 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jZIxu-00074u-9u
	for submit <at> debbugs.gnu.org; Thu, 14 May 2020 14:52:23 -0400
Received: from gateway33.websitewelcome.com ([192.185.146.68]:29291)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <shlomif@HIDDEN>) id 1jZIxs-00074l-6P
 for 41262 <at> debbugs.gnu.org; Thu, 14 May 2020 14:52:16 -0400
Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20])
 by gateway33.websitewelcome.com (Postfix) with ESMTP id 4F0B5A78F3A
 for <41262 <at> debbugs.gnu.org>; Thu, 14 May 2020 13:52:15 -0500 (CDT)
Received: from gator4065.hostgator.com ([192.185.4.76]) by cmsmtp with SMTP
 id ZIxrjDHu1AGTXZIxrjSq4r; Thu, 14 May 2020 13:52:15 -0500
X-Authority-Reason: nr=8
Received: from igld-84-229-97-187.inter.net.il ([84.229.97.187]:57090
 helo=telaviv1.shlomifish.org)
 by gator4065.hostgator.com with esmtpsa (TLS1.2) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93)
 (envelope-from <shlomif@HIDDEN>)
 id 1jZIxq-003et7-OC; Thu, 14 May 2020 13:52:14 -0500
Received: from telaviv1.shlomifish.org (telaviv1.shlomifish.org [127.0.0.1])
 by telaviv1.shlomifish.org (Postfix) with ESMTP id 16F552610F3;
 Thu, 14 May 2020 21:52:12 +0300 (IDT)
Date: Thu, 14 May 2020 21:52:11 +0300
From: Shlomi Fish <shlomif@HIDDEN>
To: <loic.tregouet@HIDDEN>
Subject: Re: bug#41262: Weird behavior with grep regex
Message-ID: <20200514215211.00746414@HIDDEN>
In-Reply-To: <12945_1589464669_5EBD4E5D_12945_8_1_3C308C9161D51E4087F9335DB215CB5B50C2483D@HIDDEN>
References: <12945_1589464669_5EBD4E5D_12945_8_1_3C308C9161D51E4087F9335DB215CB5B50C2483D@HIDDEN>
X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-mageia-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-AntiAbuse: This header was added to track abuse,
 please include it with any abuse report
X-AntiAbuse: Primary Hostname - gator4065.hostgator.com
X-AntiAbuse: Original Domain - debbugs.gnu.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - shlomifish.org
X-BWhitelist: no
X-Source-IP: 84.229.97.187
X-Source-L: No
X-Exim-ID: 1jZIxq-003et7-OC
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Source-Sender: igld-84-229-97-187.inter.net.il (telaviv1.shlomifish.org)
 [84.229.97.187]:57090
X-Source-Auth: shlomif@HIDDEN
X-Email-Count: 2
X-Source-Cap: c2hsb21pZjtzaGxvbWlmO2dhdG9yNDA2NS5ob3N0Z2F0b3IuY29t
X-Local-Domain: yes
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 41262
Cc: 41262 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

Hi Loic!

On Thu, 14 May 2020 13:57:48 +0000
<loic.tregouet@HIDDEN> wrote:

> Hi,
>=20
> I've reproduced a strange behaviour of grep command when a file name of a
> single letter is present in current directory .
>=20
> $ echo a | grep [a-z]
> a
> $ touch t
> $ echo a | grep [a-z]
> $ rm t
> $ echo a | grep [a-z]
> a
> $
>=20

This is standard Unix shell ( sh / ksh / bash ) globbing behaviour:

https://en.wikipedia.org/wiki/Glob_%28programming%29

Quoting works:

```
[shlomif@localhost ~]$ cd tmp
[shlomif@localhost tmp]$ touch t
[shlomif@localhost tmp]$ echo a | grep [a-z]
[shlomif@localhost tmp]$ echo a | grep '[a-z]'
a
[shlomif@localhost tmp]$ echo a | grep "[a-z]"
a
[shlomif@localhost tmp]$=20
```

Also see https://perl-begin.org/topics/security/code-markup-injection/ .

>=20
> Any idea ?
>=20
> Regards
>=20
> _________________________________________________________________________=
________________________________________________
>=20
> Ce message et ses pieces jointes peuvent contenir des informations
> confidentielles ou privilegiees et ne doivent donc pas etre diffuses,
> exploites ou copies sans autorisation. Si vous avez recu ce message par
> erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les
> pieces jointes. Les messages electroniques etant susceptibles d'alteratio=
n,
> Orange decline toute responsabilite si ce message a ete altere, deforme ou
> falsifie. Merci.
>=20
> This message and its attachments may contain confidential or privileged
> information that may be protected by law; they should not be distributed,
> used or copied without authorisation. If you have received this email in
> error, please notify the sender and delete this message and its attachmen=
ts.
> As emails may be altered, Orange is not liable for messages that have been
> modified, changed or falsified. Thank you.
>=20

Ahem :(

--=20

Shlomi Fish       https://www.shlomifish.org/
https://www.shlomifish.org/humour/Summerschool-at-the-NSA/

Knuth is not God! Typing =E2=80=9CGod=E2=80=9D into Google and pressing =E2=
=80=9CI=E2=80=99m Feeling Lucky=E2=80=9D
will not lead you to his homepage.
    =E2=80=94 https://www.shlomifish.org/humour/bits/facts/Knuth/

Please reply to list if it's a mailing list post - https://shlom.in/reply .




Information forwarded to bug-grep@HIDDEN:
bug#41262; Package grep. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 May 2020 18:52:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 14 14:52:37 2020
Received: from localhost ([127.0.0.1]:34827 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jZIyD-00075k-98
	for submit <at> debbugs.gnu.org; Thu, 14 May 2020 14:52:37 -0400
Received: from lists.gnu.org ([209.51.188.17]:58960)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <garyjohn@HIDDEN>) id 1jZIyB-00075b-Qm
 for submit <at> debbugs.gnu.org; Thu, 14 May 2020 14:52:36 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51652)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <garyjohn@HIDDEN>)
 id 1jZIyB-00018u-5h
 for bug-grep@HIDDEN; Thu, 14 May 2020 14:52:35 -0400
Received: from mail.spocom.com ([206.63.224.240]:54892)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <garyjohn@HIDDEN>) id 1jZIy9-0008Ov-Hy
 for bug-grep@HIDDEN; Thu, 14 May 2020 14:52:34 -0400
DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; d=spocom.com; s=mail;
 h=received:date:from:to:subject:message-id:mail-followup-to
 :references:mime-version:content-type:content-disposition
 :in-reply-to:x-operating-system:user-agent;
 b=25mf/z6j7c2CX9JGIjyKjVfEi0o69S5lCjpWaffrFbeDEnnEQaJvEmaT58NmKmoXw
 uM1ur3CSlgspSUhmq/6AA==
Received: from localhost (174-31-48-84.spkn.qwest.net [174.31.48.84]) by
 mail.spocom.com with SMTP; Thu, 14 May 2020 11:37:11 -0700
Date: Thu, 14 May 2020 11:36:13 -0700
From: Gary Johnson <garyjohn@HIDDEN>
To: bug-grep@HIDDEN
Subject: Re: bug#41262: Weird behavior with grep regex
Message-ID: <20200514183613.GA3515@phoenix>
Mail-Followup-To: bug-grep@HIDDEN
References: <12945_1589464669_5EBD4E5D_12945_8_1_3C308C9161D51E4087F9335DB215CB5B50C2483D@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <12945_1589464669_5EBD4E5D_12945_8_1_3C308C9161D51E4087F9335DB215CB5B50C2483D@HIDDEN>
X-Operating-System: Linux 2.6.32-74-generic GNU/Linux
User-Agent: Mutt/1.5.20 (2009-06-14)
Received-SPF: pass client-ip=206.63.224.240; envelope-from=garyjohn@HIDDEN;
 helo=mail.spocom.com
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/14 14:37:28
X-ACL-Warn: Detected OS   = Windows 7 or 8
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

On 2020-05-14, loic.tregouet wrote:
> Hi,
> 
> I've reproduced a strange behaviour of grep command when a file
> name of a single letter is present in current directory .
> 
> $ echo a | grep [a-z]
> a
> $ touch t
> $ echo a | grep [a-z]
> $ rm t
> $ echo a | grep [a-z]
> a
> $
> 
> 
> Any idea ?

You are not quoting the pattern so it is being expanded by the
shell.  The shell sees the argument as a pathname pattern to be
expanded.  If there is no matching file name, the shell leaves the
argument unchanged and passes [a-z] to grep.  If there is a matching
file name, as there is after you touch t, then the shell expands
that pattern to the matching file t and passes t to grep.

The solution is to enclose the pattern in quotes, either single or
double, like this:

    $ echo a | grep "[a-z]"

or to escape one or both of the brackets, like this:

    $ echo a | grep \[a-z\]

Regards,
Gary





Information forwarded to bug-grep@HIDDEN:
bug#41262; Package grep. Full text available.
Added tag(s) notabug. Request was from Eric Blake <eblake@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 May 2020 14:37:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 14 10:37:52 2020
Received: from localhost ([127.0.0.1]:34374 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jZEzg-0005jt-3x
	for submit <at> debbugs.gnu.org; Thu, 14 May 2020 10:37:52 -0400
Received: from lists.gnu.org ([209.51.188.17]:58534)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <loic.tregouet@HIDDEN>) id 1jZEN0-0004RM-Ml
 for submit <at> debbugs.gnu.org; Thu, 14 May 2020 09:57:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35668)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <loic.tregouet@HIDDEN>)
 id 1jZEN0-000331-B4
 for bug-grep@HIDDEN; Thu, 14 May 2020 09:57:54 -0400
Received: from relais-inet.orange.com ([80.12.66.41]:4526)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <loic.tregouet@HIDDEN>)
 id 1jZEMz-0000bN-43
 for bug-grep@HIDDEN; Thu, 14 May 2020 09:57:53 -0400
Received: from opfedar00.francetelecom.fr (unknown [xx.xx.xx.11])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by opfedar24.francetelecom.fr (ESMTP service) with ESMTPS id 49NCmF5QCxz5vx0
 for <bug-grep@HIDDEN>; Thu, 14 May 2020 15:57:49 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.com;
 s=ORANGE001; t=1589464669;
 bh=okuLdN5W5jAPBbp5UYy3iujtL0zSlgumjqNeBMx+5Bo=;
 h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version;
 b=BrVeZUMs9ryzFdrlmHM/FzoKuioOAgKDE7b1dHFtad0KcBMSG1Xc6XVQzLklTDzGM
 Lb/rU/fAcKFDhi1P0HQ2g+d7k1u8EfUpOE5EUpxFDS12D74SS7H4roJfrSriCnaa0B
 zi2OfMSp+H6MckqLyQkE+6H/3Tkh+/TweKGx8TjdLw5t7zuOhFaP3RrtpBKeYqIFkz
 M7GxHh9LIiS3nW/bKRIr9nPsJNQwI1ex7b/z8cLCeNJQgslPg6H+I7H3fN3iI2Sboe
 EO0BEJwzh9RuOLU1jevtoAivkWL2zAOfMdW9YURPDoB+8+/SufMwCRK79DDMjkOCEZ
 XqUts08qUFMIw==
Received: from Exchangemail-eme6.itn.ftgroup (unknown [xx.xx.13.45])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by opfedar00.francetelecom.fr (ESMTP service) with ESMTPS id 49NCmF4dHnzCqk4
 for <bug-grep@HIDDEN>; Thu, 14 May 2020 15:57:49 +0200 (CEST)
From: <loic.tregouet@HIDDEN>
To: "bug-grep@HIDDEN" <bug-grep@HIDDEN>
Subject: Weird behavior with grep regex
Thread-Topic: Weird behavior with grep regex
Thread-Index: AdYp9xcMovheSlYaQ6ij3VZ9h15DGQ==
Date: Thu, 14 May 2020 13:57:48 +0000
Message-ID: <12945_1589464669_5EBD4E5D_12945_8_1_3C308C9161D51E4087F9335DB215CB5B50C2483D@HIDDEN>
Accept-Language: fr-FR, en-US
Content-Language: fr-FR
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.114.13.245]
Content-Type: multipart/alternative;
 boundary="_000_3C308C9161D51E4087F9335DB215CB5B50C2483DOPEXCAUBM23corp_"
MIME-Version: 1.0
Received-SPF: pass client-ip=80.12.66.41;
 envelope-from=loic.tregouet@HIDDEN; helo=relais-inet.orange.com
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/14 09:57:50
X-ACL-Warn: Detected OS   = Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy]
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001,
 URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 14 May 2020 10:37:50 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


--_000_3C308C9161D51E4087F9335DB215CB5B50C2483DOPEXCAUBM23corp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

I've reproduced a strange behaviour of grep command when a file name of a s=
ingle letter is present in current directory .

$ echo a | grep [a-z]
a
$ touch t
$ echo a | grep [a-z]
$ rm t
$ echo a | grep [a-z]
a
$


Any idea ?

Regards

___________________________________________________________________________=
______________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confiden=
tielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu=
 ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages el=
ectroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou =
falsifie. Merci.

This message and its attachments may contain confidential or privileged inf=
ormation that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and dele=
te this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been =
modified, changed or falsified.
Thank you.


--_000_3C308C9161D51E4087F9335DB215CB5B50C2483DOPEXCAUBM23corp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii">
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Arial","sans-serif";
	color:windowtext;
	font-weight:normal;
	font-style:normal;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"FR" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;">Hi,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">I&#8217;ve reproduced a st=
range behaviour of grep command when a file name of a single letter is pres=
ent in current directory .<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">$ echo a | grep [a-z]<o:p>=
</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">a<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">$ touch t<o:p></o:p></span=
></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">$ echo a | grep [a-z]<o:p>=
</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">$ rm t<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">$ echo a | grep [a-z]<o:p>=
</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">a<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">$<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">Any idea ?<o:p></o:p></spa=
n></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">Regards<o:p></o:p></span><=
/p>
</div>
<PRE>______________________________________________________________________=
___________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confiden=
tielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu=
 ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages el=
ectroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou =
falsifie. Merci.

This message and its attachments may contain confidential or privileged inf=
ormation that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and dele=
te this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been =
modified, changed or falsified.
Thank you.
</PRE></body>
</html>

--_000_3C308C9161D51E4087F9335DB215CB5B50C2483DOPEXCAUBM23corp_--




Acknowledgement sent to <loic.tregouet@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-grep@HIDDEN. Full text available.
Report forwarded to bug-grep@HIDDEN:
bug#41262; Package grep. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 14 May 2020 19:00:02 UTC

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