GNU bug report logs - #30713
maybe a bug report, please check(ScanMail has removed a file)

Previous Next

Package: grep;

Reported by: Maik.Brenke <at> continental-corporation.com

Date: Mon, 5 Mar 2018 16:03: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 30713 in the body.
You can then email your comments to 30713 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#30713; Package grep. (Mon, 05 Mar 2018 16:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maik.Brenke <at> continental-corporation.com:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Mon, 05 Mar 2018 16:03:02 GMT) Full text and rfc822 format available.

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

From: Maik.Brenke <at> continental-corporation.com
To: bug-grep <at> gnu.org
Subject: maybe a bug report, please check(ScanMail has removed a file)
Date: Mon, 5 Mar 2018 11:26:04 +0100
[Message part 1 (text/plain, inline)]
 Dear Ladys and Gentleman,

during my work I noticed some strange behavior of the command "grep":

When I use grep according [1], I got some results but the recursive search is missing some results (see [2]):

[1]:
$ grep -irn "gpioPwm5"
examples/fsimx6sx/efusa9x_gpio_pins.c:36:gpio_config_t gpioPwm5 = {
examples/fsimx6sx/efusa9x_board.h:81:#define BOARD_GPIO_LED_BLINK_IMX              (&gpioPwm5)
examples/fsimx6sx/efusa9x_board.h:82:#define BOARD_GPIO_LED_CONFIG                 (&gpioPwm5)
examples/fsimx6sx/efusa9x_gpio_pins.h:59:extern gpio_config_t gpioPwm5;

[2]:
$ grep -in "gpioPwm5" examples/fsimx6sx/gpio_pins.*
examples/fsimx6sx/gpio_pins.c:36:gpio_config_t gpioPwm5 = {
examples/fsimx6sx/gpio_pins.h:59:extern gpio_config_t gpioPwm5;


So the problem for me is that I can not find "gpioPwm5" in gpio_pins.c, when I perform 'grep -irn "gpioPwm5"'. Did I something wrong?
I attached the example to maybe support your research.


My system:
$ uname -srvmpio
Linux 4.13.0-31-generic #34~16.04.1-Ubuntu SMP Fri Jan 19 17:11:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/issue
Ubuntu 16.04.3 LTS \n \l

$ cat /proc/version
Linux version 4.13.0-31-generic (buildd <at> lcy01-amd64-013) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)) #34~16.04.1-Ubuntu SMP Fri Jan 19 17:11:01 UTC 2018

$ grep --version
grep (GNU grep) 2.25
&#8230;


Please let me now if I can support you.


Mit freundlichen Grüßen / Best regards

Maik Brenke
Software Engineer
BU ADAS

Continental
Division Chassis & Safety
Ringlerstrasse 17, 85057 Ingolstadt
Germany

Phone: 	+49-841-881-12401
[Message part 2 (text/html, inline)]

Information forwarded to bug-grep <at> gnu.org:
bug#30713; Package grep. (Mon, 05 Mar 2018 19:07:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Maik.Brenke <at> continental-corporation.com, 30713 <at> debbugs.gnu.org
Subject: Re: bug#30713: maybe a bug report, please check(ScanMail has removed
 a file)
Date: Mon, 5 Mar 2018 11:06:14 -0800
On 03/05/2018 02:26 AM, Maik.Brenke <at> continental-corporation.com wrote:
> So the problem for me is that I can not find "gpioPwm5" in gpio_pins.c, when I perform 'grep -irn "gpioPwm5"'.

Most likely the files you're worried about are symbolic links. grep -r 
does not follow symlinks. Use grep -R if you want to follow symlinks.





Information forwarded to bug-grep <at> gnu.org:
bug#30713; Package grep. (Mon, 05 Mar 2018 23:00:01 GMT) Full text and rfc822 format available.

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

From: Budi <budikusasi <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 30713 <at> debbugs.gnu.org, Maik.Brenke <at> continental-corporation.com
Subject: Re: bug#30713: maybe a bug report, please check(ScanMail has removed
 a file)
Date: Tue, 6 Mar 2018 05:49:25 +0700
if use -r

need

-- include= gpio_pins.c

after
grep -iPe ' '

On 3/6/18, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> On 03/05/2018 02:26 AM, Maik.Brenke <at> continental-corporation.com wrote:
>> So the problem for me is that I can not find "gpioPwm5" in gpio_pins.c,
>> when I perform 'grep -irn "gpioPwm5"'.
>
> Most likely the files you're worried about are symbolic links. grep -r
> does not follow symlinks. Use grep -R if you want to follow symlinks.
>
>
>
>
>




Information forwarded to bug-grep <at> gnu.org:
bug#30713; Package grep. (Mon, 05 Mar 2018 23:26:01 GMT) Full text and rfc822 format available.

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

From: Jim Meyering <jim <at> meyering.net>
To: Maik.Brenke <at> continental-corporation.com
Cc: 30713 <at> debbugs.gnu.org
Subject: Re: bug#30713: maybe a bug report, please check(ScanMail has removed
 a file)
Date: Mon, 5 Mar 2018 15:25:26 -0800
tags 30713 notabug
close 30713
stop

On Mon, Mar 5, 2018 at 11:06 AM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> On 03/05/2018 02:26 AM, Maik.Brenke <at> continental-corporation.com wrote:
>>
>> So the problem for me is that I can not find "gpioPwm5" in gpio_pins.c,
>> when I perform 'grep -irn "gpioPwm5"'.
>
> Most likely the files you're worried about are symbolic links. grep -r does
> not follow symlinks. Use grep -R if you want to follow symlinks.

With the commands at the top of this message, I've marked this as "not
a bug" and closed the issue in our tracker.




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:36:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 30713 <at> debbugs.gnu.org and Maik.Brenke <at> continental-corporation.com Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Wed, 01 Jan 2020 07:36:01 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:04 GMT) Full text and rfc822 format available.

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

Previous Next


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