bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27763: egrep.sh: grep missing path


From: Santiago Ruano Rincón
Subject: bug#27763: egrep.sh: grep missing path
Date: Wed, 19 Jul 2017 09:22:43 +0200

Control: tags -1 + patch

Hi,

As suggested by this user, it would be better if egrep/fgrep script
calls grep using its absolute path.

On Fri, 19 May 2017 22:04:44 +0100 john mullee <address@hidden> wrote:
> Package: grep
> Version: 2.20-4.1
> 
> cat /bin/egrep
>      #!/bin/sh
>      exec grep -E "$@"
> 
> should replace with
> 
>      exec /bin/grep -E "$@"
> 
> to reproduce:
> 
> address@hidden:/opt/firewall# bash
> address@hidden:/opt/firewall# PATH=/usr/local egrep "any" /etc/*
> bash: egrep: command not found

Please, consider the attached patch. 

Cheers,

Santiago

Attachment: 0001-src-Makefile.am-egrep.sh-call-grep-using-its-absolut.patch
Description: Text Data

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]