From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 19 03:23:03 2017 Received: (at submit) by debbugs.gnu.org; 19 Jul 2017 07:23:03 +0000 Received: from localhost ([127.0.0.1]:47117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXjK3-0006SA-0O for submit@debbugs.gnu.org; Wed, 19 Jul 2017 03:23:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXjK1-0006RS-9S for submit@debbugs.gnu.org; Wed, 19 Jul 2017 03:23:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXjJv-00072Q-CR for submit@debbugs.gnu.org; Wed, 19 Jul 2017 03:22:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43338) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dXjJv-00072M-8E for submit@debbugs.gnu.org; Wed, 19 Jul 2017 03:22:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXjJu-0004lt-2l for bug-grep@gnu.org; Wed, 19 Jul 2017 03:22:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXjJq-00071a-Tz for bug-grep@gnu.org; Wed, 19 Jul 2017 03:22:54 -0400 Received: from mx1.riseup.net ([198.252.153.129]:38574) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dXjJq-00071B-KS for bug-grep@gnu.org; Wed, 19 Jul 2017 03:22:50 -0400 Received: from piha.riseup.net (unknown [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 183B11A1C69; Wed, 19 Jul 2017 07:22:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1500448968; bh=4/T4kXk2QcvwQ5ewaFvTMcsSvisWmuTusEYhzGPShDQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cppBZIIL9l/TOBwizp6nEfrGWgej2BImPbLwRQQo2zNgpkOrNX+3avhzZil97g6j8 PeXz2ZYu0WJDCaGDeabTy+yJZtGv6AnZjGafWtdRWPQymQT/o5Mq34IKfwlU50tKjC 6gE9z4KAJnV82H6rDwYTwVPsD7Ik8+CH9jRrnpJ4= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: santiagorr@riseup.net) by (piha) with ESMTPSA id 691BB1CE15C Date: Wed, 19 Jul 2017 09:22:43 +0200 From: Santiago Ruano =?iso-8859-1?Q?Rinc=F3n?= To: bug-grep@gnu.org Subject: egrep.sh: grep missing path Message-ID: <20170719072243.aihz2hyls4jzrg34@riseup.net> References: <0427d0c4-81d5-18ef-dc81-d0f7fb650d9e@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rofdju357nvikqfg" Content-Disposition: inline In-Reply-To: <0427d0c4-81d5-18ef-dc81-d0f7fb650d9e@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: submit Cc: 863002@bugs.debian.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --rofdju357nvikqfg Content-Type: multipart/mixed; boundary="sbb47zbuuka6yu6c" Content-Disposition: inline --sbb47zbuuka6yu6c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 wrot= e: > Package: grep > Version: 2.20-4.1 >=20 > cat /bin/egrep > #!/bin/sh > exec grep -E "$@" >=20 > should replace with >=20 > exec /bin/grep -E "$@" >=20 > to reproduce: >=20 > root@debian-512mb-fra1-01:/opt/firewall# bash > root@debian-512mb-fra1-01:/opt/firewall# PATH=3D/usr/local egrep "any" /e= tc/* > bash: egrep: command not found Please, consider the attached patch.=20 Cheers, Santiago --sbb47zbuuka6yu6c Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-src-Makefile.am-egrep.sh-call-grep-using-its-absolut.patch" Content-Transfer-Encoding: quoted-printable =46rom cd235a0f51e84b3a744a06f3037ba7f3bad49b78 Mon Sep 17 00:00:00 2001 =46rom: "Santiago R.R" Date: Wed, 19 Jul 2017 09:16:15 +0200 Subject: [PATCH] src/Makefile.am: egrep.sh call grep using its absolute path Signed-off-by: Santiago R.R. --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 71c64f97..73c41dda 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -60,7 +60,7 @@ egrep fgrep: egrep.sh Makefile fi && \ sed -e 's|[@]SHELL@|$(SHELL)|g' \ -e "$$edit_substring" \ - -e "s|[@]grep@|$$grep|g" \ + -e "s|[@]grep@|$(bindir)/$$grep|g" \ -e "s|[@]option@|$$option|g" <$(srcdir)/egrep.sh >$@-t $(AM_V_at)chmod +x $@-t $(AM_V_at)mv $@-t $@ --=20 2.13.3 --sbb47zbuuka6yu6c-- --rofdju357nvikqfg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEZBjBLN3JFZ8LzvKD3m/9uMjWSL0FAllvCJsACgkQ3m/9uMjW SL1Eow//c1OCusysjhLvX6ja5TDs5nEs/WJtYQ3dJA30qp3Jc9AOvBpPghjKIEeg veQ5upElYWmTLmG+feUyaNUeU8UJPMtToA9wAY9FtVuEB7V6zcn7N6RR//kawpKa oprKpmovLIiDjH+0f6AkMS+Z24yIW8ACyRPy/gEcPfvYtIiGRAQBQNolWC4HYA8B f1JdY5+QN68Yfeut/uvYK9NP0mr9aMAlZAyIa76ukVz1/cKtVPRiOsoPwHTOjPML dOPP648GMaDrAopRKUvmAfPsCIA8igrq8Q3jtJZG6tTOle/YQJhlZj0h2HqKNra4 LwgKJ2CjpeS+xZHp02/aFxTphq1AAaKIIDf1Nq9MJVRt9jxKKSHJOZAtlTRhXGSx AsUk6nGB7+HhVsITFjcEdegjLAeM7+LpvzzdyCDZ2wxcWpa59rO6fSqTcBWDwWjp 9Yyf93Mz4MFgwyM2ZnAvvrCzurZMDwuZVzfI8nHv6z5Q8odu0+YJclunvRiHiEgb oLSXNJmNg8UGfQSYLtr9jayq9VxWbqoVq3rBgl1Cs1XXDIIyooXUbrH7S4ghjGyz qBqe62S+5+3FikkfVjZQj9WnI/svt2TkBmD/+6F0u18IA32QntTTGdYQEpDM5oaf 3rwlq9AYiBghHnvDe4puzy79D6ZraVaicXcJX6ggQ6Q3pyT3qkk= =UXvW -----END PGP SIGNATURE----- --rofdju357nvikqfg-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 19 05:56:34 2017 Received: (at 27763) by debbugs.gnu.org; 19 Jul 2017 09:56:34 +0000 Received: from localhost ([127.0.0.1]:47177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXlib-00023K-UZ for submit@debbugs.gnu.org; Wed, 19 Jul 2017 05:56:34 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXlia-000237-Eg for 27763@debbugs.gnu.org; Wed, 19 Jul 2017 05:56:33 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 824151601A0; Wed, 19 Jul 2017 02:56:26 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id KPcJTJ4wXYFo; Wed, 19 Jul 2017 02:56:25 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3CB31160196; Wed, 19 Jul 2017 02:56:25 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sIV6wMmcrhwm; Wed, 19 Jul 2017 02:56:25 -0700 (PDT) Received: from [192.168.1.9] (unknown [47.153.184.153]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 1E90616017A; Wed, 19 Jul 2017 02:56:25 -0700 (PDT) Subject: Re: bug#27763: egrep.sh: grep missing path To: =?UTF-8?Q?Santiago_Ruano_Rinc=c3=b3n?= , 27763@debbugs.gnu.org References: <0427d0c4-81d5-18ef-dc81-d0f7fb650d9e@gmail.com> <20170719072243.aihz2hyls4jzrg34@riseup.net> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <60fe752b-d3a5-cb43-716a-2d50f822a4fe@cs.ucla.edu> Date: Wed, 19 Jul 2017 02:56:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170719072243.aihz2hyls4jzrg34@riseup.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 27763 Cc: 863002@bugs.debian.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Santiago Ruano Rinc=C3=B3n wrote: > As suggested by this user, it would be better if egrep/fgrep script > calls grep using its absolute path. Debian bug 863002 doesn't explain why it would be better, as the original= bug=20 report is evidently a case of misunderstanding how PATH works. Although we used to do it the way you're suggesting, the current way is b= etter=20 for users who want to specify their own 'grep' command with their own opt= ion=20 preferences, and to have these preferences also apply to 'egrep' and 'fgr= ep'. See: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19998 From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 19 08:06:21 2017 Received: (at 27763) by debbugs.gnu.org; 19 Jul 2017 12:06:21 +0000 Received: from localhost ([127.0.0.1]:47242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXnkD-00070I-5E for submit@debbugs.gnu.org; Wed, 19 Jul 2017 08:06:21 -0400 Received: from mx1.riseup.net ([198.252.153.129]:39643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXnkC-00070B-Bc for 27763@debbugs.gnu.org; Wed, 19 Jul 2017 08:06:20 -0400 Received: from cotinga.riseup.net (unknown [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id A5F5A1A1DEE; Wed, 19 Jul 2017 12:06:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1500465979; bh=xqn/DtS4E8EGTzAzRpTwYoymC+iaLyejdTck0zsOB3k=; h=Date:From:To:Subject:References:In-Reply-To:From; b=UuDRh1kTio+TMMZgNiuWwAA2hb1zBzcMIqUO+0BCUKF4t2sFnUUEFMewTa9nVNbT3 TyIFtRQ6p9VQMb6G2ucRk5lFjIv/UFGKWlM0zZPo2ITwMoqjD/qu7WGgw3vYoqHmgC /+nEZkcsiqFIWfFWi3sJCkehs3fzp0YzIya9KKrg= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: santiagorr@riseup.net) by (cotinga) with ESMTPSA id 0C1355ACD9 Date: Wed, 19 Jul 2017 14:05:54 +0200 From: Santiago Ruano =?iso-8859-1?Q?Rinc=F3n?= To: 27763@debbugs.gnu.org, 863002@bugs.debian.org Subject: Re: bug#27763: egrep.sh: grep missing path Message-ID: <20170719112651.5vlaysyhtsz7zq2s@riseup.net> References: <0427d0c4-81d5-18ef-dc81-d0f7fb650d9e@gmail.com> <20170719072243.aihz2hyls4jzrg34@riseup.net> <60fe752b-d3a5-cb43-716a-2d50f822a4fe@cs.ucla.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <60fe752b-d3a5-cb43-716a-2d50f822a4fe@cs.ucla.edu> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27763 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) El 19/07/17 a las 02:56, Paul Eggert escribió: > Santiago Ruano Rincón wrote: > > > As suggested by this user, it would be better if egrep/fgrep script > > calls grep using its absolute path. > > Debian bug 863002 doesn't explain why it would be better, as the original > bug report is evidently a case of misunderstanding how PATH works. The bug submitter sent me I private mail about that. I let him explain it publicly answering to this mail. For me, "it would be better" just because it makes egrep/fgrep call the grep installed by the package. > Although we used to do it the way you're suggesting, the current way is > better for users who want to specify their own 'grep' command with their own > option preferences, and to have these preferences also apply to 'egrep' and > 'fgrep'. See: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19998 That makes sense. Thanks for your answer, Santiago From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 31 14:22:53 2019 Received: (at control) by debbugs.gnu.org; 31 Dec 2019 19:22:53 +0000 Received: from localhost ([127.0.0.1]:35138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imN6S-0007WU-P2 for submit@debbugs.gnu.org; Tue, 31 Dec 2019 14:22:52 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:38316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imN6R-0007WF-Gw for control@debbugs.gnu.org; Tue, 31 Dec 2019 14:22:51 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0FE5016027C for ; Tue, 31 Dec 2019 11:22:46 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id wsHBOU09pAYY for ; Tue, 31 Dec 2019 11:22:45 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 7357716027E for ; Tue, 31 Dec 2019 11:22:45 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id chGoozMNUIfm for ; Tue, 31 Dec 2019 11:22:45 -0800 (PST) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 51D4616027C for ; Tue, 31 Dec 2019 11:22:45 -0800 (PST) To: control@debbugs.gnu.org From: Paul Eggert Subject: closing 27763 Organization: UCLA Computer Science Department Message-ID: Date: Tue, 31 Dec 2019 11:22:45 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 27763 thanks This does not appear to be a grep bug, so closing it. From unknown Tue Jun 17 22:08:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 29 Jan 2020 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator