Debian Bug report logs - #734095
bash-completion: Please replace 'grep' with 'command grep' within several functions.

version graph

Package: bash-completion; Maintainer for bash-completion is Gabriel F. T. Gomes <gabriel@debian.org>; Source for bash-completion is src:bash-completion (PTS, buildd, popcon).

Reported by: Tomasz Nowiński <fxtmj@jadamspam.pl>

Date: Fri, 3 Jan 2014 18:24:02 UTC

Severity: normal

Tags: fixed-upstream, upstream

Found in version bash-completion/1:2.1-2

Reply or subscribe to this bug.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#734095; Package bash-completion. (Fri, 03 Jan 2014 18:24:06 GMT) (full text, mbox, link).


Acknowledgement sent to Tomasz Nowiński <fxtmj@jadamspam.pl>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Fri, 03 Jan 2014 18:24:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Tomasz Nowiński <fxtmj@jadamspam.pl>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash-completion: Please replace 'grep' with 'command grep' within several functions.
Date: Fri, 03 Jan 2014 18:59:23 +0100
Package: bash-completion
Version: 1:2.1-2
Severity: normal

Hi,

In my shell I have defined a custom "grep" function that overrides the original
command. If I try to use make in directory without Makefile or with some
makefiles, i get error from grep "grep: conflicting matchers specified",
because my grep uses -E.

Replacement 'grep' with 'command grep'

144c144
<         local reset=$( set +o | grep -F posix ); set +o posix # for <(...)
---
>         local reset=$( set +o | command grep -F posix ); set +o posix # for
<(...)

resolves the problem.

This is not only example of using grep not directly from it's path:

 $ grep '\<grep '  /usr/share/bash-completion/completions/*| grep -v '(command\
|\.)grep'
/usr/share/bash-completion/completions/c++:    cc  --version 2>/dev/null | grep
-q GCC && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/c++:    c++ --version 2>/dev/null | grep
-q GCC && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/cc:    cc  --version 2>/dev/null | grep
-q GCC && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/cc:    c++ --version 2>/dev/null | grep
-q GCC && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/colormake:        local reset=$( set +o
| grep -F posix ); set +o posix # for <(...)
/usr/share/bash-completion/completions/dict:        # it down with grep if $cur
looks like something that's safe to embed
/usr/share/bash-completion/completions/g++:    cc  --version 2>/dev/null | grep
-q GCC && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/g++:    c++ --version 2>/dev/null | grep
-q GCC && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/g77:    cc  --version 2>/dev/null | grep
-q GCC && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/g77:    c++ --version 2>/dev/null | grep
-q GCC && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/gcc:    cc  --version 2>/dev/null | grep
-q GCC && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/gcc:    c++ --version 2>/dev/null | grep
-q GCC && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/gcj:    cc  --version 2>/dev/null | grep
-q GCC && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/gcj:    c++ --version 2>/dev/null | grep
-q GCC && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/gmake:        local reset=$( set +o |
grep -F posix ); set +o posix # for <(...)
/usr/share/bash-completion/completions/gnumake:        local reset=$( set +o |
grep -F posix ); set +o posix # for <(...)
/usr/share/bash-completion/completions/gpc:    cc  --version 2>/dev/null | grep
-q GCC && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/gpc:    c++ --version 2>/dev/null | grep
-q GCC && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/lintian:    tags=$( grep -e ^Tag
/usr/share/lintian/checks/*.desc | cut -d\  -f2 )
/usr/share/bash-completion/completions/lintian:            match=$(grep -nE
"^Tag: $item$" /usr/share/lintian/checks/*.desc \
/usr/share/bash-completion/completions/lintian:    checks=$(grep -e ^Check-
Script -e ^Abbrev \
/usr/share/bash-completion/completions/lintian:            match=$(grep -nE
"^(Check-Script|Abbrev): $item$" \
/usr/share/bash-completion/completions/lintian:            todisable=$(grep -e
^Check-Script -e ^Abbrev $match | \
/usr/share/bash-completion/completions/lintian:    infos=$(grep -e ^Collector
/usr/share/lintian/collection/*.desc \
/usr/share/bash-completion/completions/lintian:            match=$( grep -nE
"^Collector: $item$" \
/usr/share/bash-completion/completions/lintian-info:    tags=$( grep -e ^Tag
/usr/share/lintian/checks/*.desc | cut -d\  -f2 )
/usr/share/bash-completion/completions/lintian-info:            match=$(grep
-nE "^Tag: $item$" /usr/share/lintian/checks/*.desc \
/usr/share/bash-completion/completions/lintian-info:    checks=$(grep -e
^Check-Script -e ^Abbrev \
/usr/share/bash-completion/completions/lintian-info:            match=$(grep
-nE "^(Check-Script|Abbrev): $item$" \
/usr/share/bash-completion/completions/lintian-info:
todisable=$(grep -e ^Check-Script -e ^Abbrev $match | \
/usr/share/bash-completion/completions/lintian-info:    infos=$(grep -e
^Collector /usr/share/lintian/collection/*.desc \
/usr/share/bash-completion/completions/lintian-info:            match=$( grep
-nE "^Collector: $item$" \
/usr/share/bash-completion/completions/make:        local reset=$( set +o |
grep -F posix ); set +o posix # for <(...)
/usr/share/bash-completion/completions/pkgadd:
pkginst_list=$(strings $(dequote $device) | grep "^PKG=" | sort -u | cut -d=
-f2)
/usr/share/bash-completion/completions/pmake:        local reset=$( set +o |
grep -F posix ); set +o posix # for <(...)
/usr/share/bash-completion/completions/rdict:        # it down with grep if
$cur looks like something that's safe to embed
/usr/share/bash-completion/completions/slackpkg:# options list is based on
`grep '\-.*\=.*)' /usr/sbin/slackpkg | cut -f1 -d\)`
/usr/share/bash-completion/completions/slackpkg:                grep "^$cur" )
)
/usr/share/bash-completion/completions/slackpkg:                grep "^$cur" )
)

Regards
TN



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (491, 'unstable'), (490, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash-completion depends on:
ii  bash  4.2+dfsg-1
ii  dpkg  1.17.5

bash-completion recommends no packages.

bash-completion suggests no packages.

-- debconf-show failed



Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#734095; Package bash-completion. (Mon, 06 Jan 2014 15:54:10 GMT) (full text, mbox, link).


Acknowledgement sent to Ville Skyttä <ville.skytta@iki.fi>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Mon, 06 Jan 2014 15:54:10 GMT) (full text, mbox, link).


Message #10 received at 734095@bugs.debian.org (full text, mbox, reply):

From: Ville Skyttä <ville.skytta@iki.fi>
To: Tomasz Nowiński <fxtmj@jadamspam.pl>, 734095@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#734095: bash-completion: Please replace 'grep' with 'command grep' within several functions.
Date: Mon, 6 Jan 2014 17:51:37 +0200
Fixed upstream:
http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=93ee009
http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=e3edf7a



Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#734095; Package bash-completion. (Mon, 06 Jan 2014 17:48:04 GMT) (full text, mbox, link).


Acknowledgement sent to Tomasz Nowiński <fxtmj@jadamspam.pl>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Mon, 06 Jan 2014 17:48:04 GMT) (full text, mbox, link).


Message #15 received at 734095@bugs.debian.org (full text, mbox, reply):

From: Tomasz Nowiński <fxtmj@jadamspam.pl>
To: Ville Skyttä <ville.skytta@iki.fi>, 734095@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#734095: bash-completion: Please replace 'grep' with 'command grep' within several functions.
Date: Mon, 06 Jan 2014 18:11:29 +0100
Thanks!


On 06.01.2014 16:51, Ville Skyttä wrote:
> Fixed upstream:
> http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=93ee009
> http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=e3edf7a




Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#734095; Package bash-completion. (Fri, 21 Mar 2014 21:30:08 GMT) (full text, mbox, link).


Acknowledgement sent to Tomasz Nowiński <fxtmj@jadamspam.pl>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Fri, 21 Mar 2014 21:30:08 GMT) (full text, mbox, link).


Message #20 received at 734095@bugs.debian.org (full text, mbox, reply):

From: Tomasz Nowiński <fxtmj@jadamspam.pl>
To: Ville Skyttä <ville.skytta@iki.fi>, 734095@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#734095: bash-completion: Please replace 'grep' with 'command grep' within several functions.
Date: Fri, 21 Mar 2014 22:27:22 +0100
Hi,

This bugs came back in version 2.1-3!

$ grep '\<grep '  /usr/share/bash-completion/completions/*| grep -v 
'(command |\.)grep'
/usr/share/bash-completion/completions/c++:    cc  --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/c++:    c++ --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/cc:    cc  --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/cc:    c++ --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/colormake:        local reset=$( 
set +o | grep -F posix ); set +o posix # for <(...)
/usr/share/bash-completion/completions/dict:        # it down with grep 
if $cur looks like something that's safe to embed
/usr/share/bash-completion/completions/g++:    cc  --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/g++:    c++ --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/g77:    cc  --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/g77:    c++ --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/gcc:    cc  --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/gcc:    c++ --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/gcj:    cc  --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/gcj:    c++ --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/gmake:        local reset=$( set 
+o | grep -F posix ); set +o posix # for <(...)
/usr/share/bash-completion/completions/gnumake:        local reset=$( 
set +o | grep -F posix ); set +o posix # for <(...)
/usr/share/bash-completion/completions/gpc:    cc  --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc cc  || :
/usr/share/bash-completion/completions/gpc:    c++ --version 2>/dev/null 
| grep -q 'GCC\|Debian' && complete -F _gcc c++ || :
/usr/share/bash-completion/completions/lintian:    tags=$( grep -e ^Tag 
/usr/share/lintian/checks/*.desc | cut -d\  -f2 )
/usr/share/bash-completion/completions/lintian: match=$(grep -nE "^Tag: 
$item$" /usr/share/lintian/checks/*.desc \
/usr/share/bash-completion/completions/lintian:    checks=$(grep -e 
^Check-Script -e ^Abbrev \
/usr/share/bash-completion/completions/lintian: match=$(grep -nE 
"^(Check-Script|Abbrev): $item$" \
/usr/share/bash-completion/completions/lintian: todisable=$(grep -e 
^Check-Script -e ^Abbrev $match | \
/usr/share/bash-completion/completions/lintian:    infos=$(grep -e 
^Collector /usr/share/lintian/collection/*.desc \
/usr/share/bash-completion/completions/lintian: match=$( grep -nE 
"^Collector: $item$" \
/usr/share/bash-completion/completions/lintian-info:    tags=$( grep -e 
^Tag /usr/share/lintian/checks/*.desc | cut -d\  -f2 )
/usr/share/bash-completion/completions/lintian-info: match=$(grep -nE 
"^Tag: $item$" /usr/share/lintian/checks/*.desc \
/usr/share/bash-completion/completions/lintian-info: checks=$(grep -e 
^Check-Script -e ^Abbrev \
/usr/share/bash-completion/completions/lintian-info: match=$(grep -nE 
"^(Check-Script|Abbrev): $item$" \
/usr/share/bash-completion/completions/lintian-info: todisable=$(grep -e 
^Check-Script -e ^Abbrev $match | \
/usr/share/bash-completion/completions/lintian-info: infos=$(grep -e 
^Collector /usr/share/lintian/collection/*.desc \
/usr/share/bash-completion/completions/lintian-info: match=$( grep -nE 
"^Collector: $item$" \
/usr/share/bash-completion/completions/make:        local reset=$( set 
+o | grep -F posix ); set +o posix # for <(...)
/usr/share/bash-completion/completions/pkgadd: pkginst_list=$(strings 
$(dequote $device) | grep "^PKG=" | sort -u | cut -d= -f2)
/usr/share/bash-completion/completions/pmake:        local reset=$( set 
+o | grep -F posix ); set +o posix # for <(...)
/usr/share/bash-completion/completions/rdict:        # it down with grep 
if $cur looks like something that's safe to embed
/usr/share/bash-completion/completions/slackpkg:# options list is based 
on `grep '\-.*\=.*)' /usr/sbin/slackpkg | cut -f1 -d\)`
/usr/share/bash-completion/completions/slackpkg: grep "^$cur" ) )
/usr/share/bash-completion/completions/slackpkg: grep "^$cur" ) )



On 06.01.2014 16:51, Ville Skyttä wrote:
> Fixed upstream:
> http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=93ee009
> http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=e3edf7a




Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#734095; Package bash-completion. (Fri, 21 Mar 2014 21:42:10 GMT) (full text, mbox, link).


Acknowledgement sent to dapal@debian.org:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Fri, 21 Mar 2014 21:42:10 GMT) (full text, mbox, link).


Message #25 received at 734095@bugs.debian.org (full text, mbox, reply):

From: David Paleino <dapal@debian.org>
To: 734095@bugs.debian.org
Cc: Tomasz Nowiński <fxtmj@jadamspam.pl>, Ville Skyttä <ville.skytta@iki.fi>
Subject: Re: Bug#734095: bash-completion: Please replace 'grep' with 'command grep' within several functions.
Date: Fri, 21 Mar 2014 22:39:44 +0100
tags 734095 upstream fixed-upstream
thanks

On Fri, 21 Mar 2014 22:27:22 +0100, Tomasz Nowiński wrote:

> Hi,
> 
> This bugs came back in version 2.1-3!

It never disappeared in 2.1-2.

Simply, the bug has been fixed upstream, while not in the Debian package...
yet. :)

Kindly,
David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174



Added tag(s) upstream and fixed-upstream. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Fri, 21 Mar 2014 21:42:14 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#734095; Package bash-completion. (Sun, 03 Jan 2016 23:36:04 GMT) (full text, mbox, link).


Acknowledgement sent to Tomasz Nowiński <fxtmj@jadamspam.pl>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Sun, 03 Jan 2016 23:36:04 GMT) (full text, mbox, link).


Message #32 received at 734095@bugs.debian.org (full text, mbox, reply):

From: Tomasz Nowiński <fxtmj@jadamspam.pl>
To: 734095@bugs.debian.org
Subject: Re: Bug#734095: Info received ([Bash-completion-devel] Bug#734095: bash-completion: Please replace 'grep' with 'command grep' within several functions.)
Date: Mon, 4 Jan 2016 00:33:09 +0100
In the past two years I modified make file the dozen or so timesby hand, 
because the change is still not landed in the package...

Regards
TN





Information forwarded to debian-bugs-dist@lists.debian.org, Gabriel F. T. Gomes <gabriel@inconstante.net.br>:
Bug#734095; Package bash-completion. (Mon, 14 Oct 2019 08:15:04 GMT) (full text, mbox, link).


Acknowledgement sent to "Barr. Fred Iwanga" <bar.frediwanga.esq.office@gmail.com>:
Extra info received and forwarded to list. Copy sent to Gabriel F. T. Gomes <gabriel@inconstante.net.br>. (Mon, 14 Oct 2019 08:15:04 GMT) (full text, mbox, link).


Message #37 received at 734095@bugs.debian.org (full text, mbox, reply):

From: "Barr. Fred Iwanga" <bar.frediwanga.esq.office@gmail.com>
To: undisclosed-recipients:;
Subject: Cześć!!!
Date: Mon, 14 Oct 2019 09:13:47 +0100
[Message part 1 (text/plain, inline)]
*Gorące pozdrowienia! Wcześniej ci pisałem, ale szkoda, że **moje e-maile
nie zostały do **ciebie dostarczone; niemniej jednak przesyłam to jeszcze
raz poniżej.*











* Jestem adwokatem Fred Iwanga; oraz jestem prawnikiem i głównym
pełnomocnikiem pracującym w obszarach podlegających jurysdykcji sądu
rodzinnego. Zwracam się o zgodę na przedstawienie cię jako najbliższego
krewnego mojemu zmarłemu klientowi, rodakowi z twojego kraju, któremu
pomogłem w dokonaniu wpłaty inwestycyjnej o wartości ( 8,720,000.00 USD)
Osiem milionów, siedemset dwadzieścia tysięcy dolarów amerykańskich w
firmie finansowej. Poinformowałem firmę finansową o jego przekazaniu wraz z
rodziną w drodze do pobliskiego kraju i polecono mi przedstawić każdego
dostępnego członka jego rodziny lub bliskiego krewnego, aby otrzymać
fundusze. Moim powodem skontaktowania się z Tobą w tej sprawie jest to, że
masz takie samo nazwisko jak mój zmarły klient. I znowu nie ma
zarejestrowanego spadkobiercy w jego pliku konta w firmie finansowej. Chcę,
aby lewy fundusz został przekazany pod opiekę spadkobiercy jego
spadkobiercy, zanim zostanie skonfiskowany przez kierownictwo firmy
finansowej. Proszę o kontakt w celu uzyskania dalszych informacji. Z
poważaniem, Barr. Fred Iwanga. (Esq).*
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 09:32:10 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.