From unknown Fri Jun 13 10:20:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24067: Bug Report : How to grep and treat meta character as normal character? Resent-From: bibek ghimire Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Mon, 25 Jul 2016 17:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24067 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: 24067@debbugs.gnu.org X-Debbugs-Original-To: bug-grep@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.146946793015381 (code B ref -1); Mon, 25 Jul 2016 17:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jul 2016 17:32:10 +0000 Received: from localhost ([127.0.0.1]:37148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRjjd-0003zz-DQ for submit@debbugs.gnu.org; Mon, 25 Jul 2016 13:32:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRYLR-0001wx-IG for submit@debbugs.gnu.org; Mon, 25 Jul 2016 01:22:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRYLL-0007zv-Bt for submit@debbugs.gnu.org; Mon, 25 Jul 2016 01:22:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRYLL-0007ze-8T for submit@debbugs.gnu.org; Mon, 25 Jul 2016 01:22:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRYLJ-0004S6-0e for bug-grep@gnu.org; Mon, 25 Jul 2016 01:22:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRYLG-0007zD-E5 for bug-grep@gnu.org; Mon, 25 Jul 2016 01:22:15 -0400 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]:35277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRYLG-0007z8-7O for bug-grep@gnu.org; Mon, 25 Jul 2016 01:22:14 -0400 Received: by mail-qk0-x236.google.com with SMTP id s63so147011221qkb.2 for ; Sun, 24 Jul 2016 22:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=+3NL+2tpMJnNjOkLjFEWLMDtKUoQ1BBfgLhuh6TMg3M=; b=XSy24ciBg5cQlvV3m4l7oRtIyUjQEagsAa4TDkWWaKeRysRmSvzbmFNyqYnmmLIOBo X78TzLS+aBb50zixjVDQ2A8WIJh/XnJe5bsUa5jIcEiza4ht4Kvkbj2E64eiW6VXzlBm gG59U2scMttq6c7+kWoC6GVunjjs+rQwIZYNTu0QqEiRGG4Gow6B2XZIitcIcD7kO8/e pQMArqrQLA8r7/ML5Y3G+YBqX2EnnWXkRLWmWL/Gdw80ZOmsWiYuFahtl2Jpc2A1Uioj bnfSqSkaPOSH6s8YQXtSWOsSXDfiWVBodJXlo0hSBvWcpocbpn+gL+S6CNYhXyY+z1Iq bApw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+3NL+2tpMJnNjOkLjFEWLMDtKUoQ1BBfgLhuh6TMg3M=; b=d4ii7InzoNoxzUGPkRtTvTYqQGil/GLTjPMlev+W1hRDjasHnrwda4XfoBMn7Unu4T bs9kOMuNJCyhkSTba4Nd2HTPZtYT0dFDgciLbbyw6x00WNNjchuVdIo4E5T5aumgS1Kw uUQahYPkFa1SPY6SC2c2d9mENngqyBNHVv9k1r48Y6pA3k/Um2V0ASx7saFATbf2vtCP ePw/DFGM6LODnWzrKbv3//v/EjwXQIZTRzSSDwUG1I12IGGgW+g8EMDLQMLm2SU6vxYF F8WUpsNRA//+vLizDLTPc6koJ3Grvloo1pdPnR22clUTV1eLoIS5OQ5atoGFckx+4Sjr d7/A== X-Gm-Message-State: AEkooutgWI6yI6eQXQHBWdxoOpthQIh2RSYVcxPVq2zetVMjJdKzDleGQMcDj5HBHTpkxufta1e6yO+JpuG0gA== X-Received: by 10.55.159.87 with SMTP id i84mr21111449qke.115.1469424133367; Sun, 24 Jul 2016 22:22:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.159.7 with HTTP; Sun, 24 Jul 2016 22:21:54 -0700 (PDT) From: bibek ghimire Date: Mon, 25 Jul 2016 00:21:54 -0500 Message-ID: Content-Type: multipart/alternative; boundary=001a114d31b07e6dc805386ef7a4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Mon, 25 Jul 2016 13:32:08 -0400 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: -4.0 (----) --001a114d31b07e6dc805386ef7a4 Content-Type: text/plain; charset=UTF-8 Hi there, i have asked this question in stackoverflow was not able to find out why I get error : grep: \: No such file or directory When I use $grep -F ... problem happen but when I use fgrep the problem vanishes. -Solta --001a114d31b07e6dc805386ef7a4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi there,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 i = have asked this question in st= ackoverflow was not able to find out why

=C2=A0I g= et error :=C2=A0

 grep: \<int: =
No such file or directory  =20
     grep: N\>: No such file or directory
When I =
use $grep -F ...=C2=A0
=C2=A0=
 =C2=A0 =C2=A0 =C2=A0 problem happen but=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0when I use fgrep the problem v= anishes.=C2=A0

-Solta
<= /div>
--001a114d31b07e6dc805386ef7a4-- From unknown Fri Jun 13 10:20:31 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: bibek ghimire Subject: bug#24067: closed (Re: bug#24067: Bug Report : How to grep and treat meta character as normal character?) Message-ID: References: <48a113c0-2611-94ee-0266-2a8e16e25626@cs.ucla.edu> X-Gnu-PR-Message: they-closed 24067 X-Gnu-PR-Package: grep Reply-To: 24067@debbugs.gnu.org Date: Tue, 26 Jul 2016 07:16:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1469517362-12160-1" This is a multi-part message in MIME format... ------------=_1469517362-12160-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #24067: Bug Report : How to grep and treat meta character as normal charact= er? which was filed against the grep package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 24067@debbugs.gnu.org. --=20 24067: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D24067 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1469517362-12160-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 24067-done) by debbugs.gnu.org; 26 Jul 2016 07:15:59 +0000 Received: from localhost ([127.0.0.1]:37564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRwas-00039r-MN for submit@debbugs.gnu.org; Tue, 26 Jul 2016 03:15:58 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:60414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRwaq-00039e-Np for 24067-done@debbugs.gnu.org; Tue, 26 Jul 2016 03:15:56 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3ECF8161149; Tue, 26 Jul 2016 00:15:51 -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 uPkr5jmFwxKO; Tue, 26 Jul 2016 00:15:50 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8D03916114A; Tue, 26 Jul 2016 00:15:50 -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 iFwCISCXOUsS; Tue, 26 Jul 2016 00:15:50 -0700 (PDT) Received: from [192.168.0.12] (HSI-KBW-078-043-232-182.hsi4.kabel-badenwuerttemberg.de [78.43.232.182]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id DCAED161149; Tue, 26 Jul 2016 00:15:49 -0700 (PDT) Subject: Re: bug#24067: Bug Report : How to grep and treat meta character as normal character? To: bibek ghimire , 24067-done@debbugs.gnu.org References: From: Paul Eggert Message-ID: <48a113c0-2611-94ee-0266-2a8e16e25626@cs.ucla.edu> Date: Tue, 26 Jul 2016 09:15:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 24067-done 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: -1.3 (-) It appears that you have an alias or other implementation of 'grep', and that this is not a bug in GNU 'grep' per se. If you are using a shell like 'bash', try these two shell commands to see which 'grep' you are actually using. type grep which grep ------------=_1469517362-12160-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Jul 2016 17:32:10 +0000 Received: from localhost ([127.0.0.1]:37148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRjjd-0003zz-DQ for submit@debbugs.gnu.org; Mon, 25 Jul 2016 13:32:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRYLR-0001wx-IG for submit@debbugs.gnu.org; Mon, 25 Jul 2016 01:22:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRYLL-0007zv-Bt for submit@debbugs.gnu.org; Mon, 25 Jul 2016 01:22:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRYLL-0007ze-8T for submit@debbugs.gnu.org; Mon, 25 Jul 2016 01:22:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRYLJ-0004S6-0e for bug-grep@gnu.org; Mon, 25 Jul 2016 01:22:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRYLG-0007zD-E5 for bug-grep@gnu.org; Mon, 25 Jul 2016 01:22:15 -0400 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]:35277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRYLG-0007z8-7O for bug-grep@gnu.org; Mon, 25 Jul 2016 01:22:14 -0400 Received: by mail-qk0-x236.google.com with SMTP id s63so147011221qkb.2 for ; Sun, 24 Jul 2016 22:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=+3NL+2tpMJnNjOkLjFEWLMDtKUoQ1BBfgLhuh6TMg3M=; b=XSy24ciBg5cQlvV3m4l7oRtIyUjQEagsAa4TDkWWaKeRysRmSvzbmFNyqYnmmLIOBo X78TzLS+aBb50zixjVDQ2A8WIJh/XnJe5bsUa5jIcEiza4ht4Kvkbj2E64eiW6VXzlBm gG59U2scMttq6c7+kWoC6GVunjjs+rQwIZYNTu0QqEiRGG4Gow6B2XZIitcIcD7kO8/e pQMArqrQLA8r7/ML5Y3G+YBqX2EnnWXkRLWmWL/Gdw80ZOmsWiYuFahtl2Jpc2A1Uioj bnfSqSkaPOSH6s8YQXtSWOsSXDfiWVBodJXlo0hSBvWcpocbpn+gL+S6CNYhXyY+z1Iq bApw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+3NL+2tpMJnNjOkLjFEWLMDtKUoQ1BBfgLhuh6TMg3M=; b=d4ii7InzoNoxzUGPkRtTvTYqQGil/GLTjPMlev+W1hRDjasHnrwda4XfoBMn7Unu4T bs9kOMuNJCyhkSTba4Nd2HTPZtYT0dFDgciLbbyw6x00WNNjchuVdIo4E5T5aumgS1Kw uUQahYPkFa1SPY6SC2c2d9mENngqyBNHVv9k1r48Y6pA3k/Um2V0ASx7saFATbf2vtCP ePw/DFGM6LODnWzrKbv3//v/EjwXQIZTRzSSDwUG1I12IGGgW+g8EMDLQMLm2SU6vxYF F8WUpsNRA//+vLizDLTPc6koJ3Grvloo1pdPnR22clUTV1eLoIS5OQ5atoGFckx+4Sjr d7/A== X-Gm-Message-State: AEkooutgWI6yI6eQXQHBWdxoOpthQIh2RSYVcxPVq2zetVMjJdKzDleGQMcDj5HBHTpkxufta1e6yO+JpuG0gA== X-Received: by 10.55.159.87 with SMTP id i84mr21111449qke.115.1469424133367; Sun, 24 Jul 2016 22:22:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.159.7 with HTTP; Sun, 24 Jul 2016 22:21:54 -0700 (PDT) From: bibek ghimire Date: Mon, 25 Jul 2016 00:21:54 -0500 Message-ID: Subject: Bug Report : How to grep and treat meta character as normal character? To: bug-grep@gnu.org Content-Type: multipart/alternative; boundary=001a114d31b07e6dc805386ef7a4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 25 Jul 2016 13:32:08 -0400 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: -4.0 (----) --001a114d31b07e6dc805386ef7a4 Content-Type: text/plain; charset=UTF-8 Hi there, i have asked this question in stackoverflow was not able to find out why I get error : grep: \: No such file or directory When I use $grep -F ... problem happen but when I use fgrep the problem vanishes. -Solta --001a114d31b07e6dc805386ef7a4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi there,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 i = have asked this question in st= ackoverflow was not able to find out why

=C2=A0I g= et error :=C2=A0

 grep: \<int: =
No such file or directory  =20
     grep: N\>: No such file or directory
When I =
use $grep -F ...=C2=A0
=C2=A0=
 =C2=A0 =C2=A0 =C2=A0 problem happen but=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0when I use fgrep the problem v= anishes.=C2=A0

-Solta
<= /div>
--001a114d31b07e6dc805386ef7a4-- ------------=_1469517362-12160-1-- From unknown Fri Jun 13 10:20:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24067: Bug Report : How to grep and treat meta character as normal character? Resent-From: bibek ghimire Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Tue, 26 Jul 2016 14:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24067 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: Paul Eggert Cc: 24067-done@debbugs.gnu.org Received: via spool by 24067-done@debbugs.gnu.org id=D24067.146954445027927 (code D ref 24067); Tue, 26 Jul 2016 14:48:02 +0000 Received: (at 24067-done) by debbugs.gnu.org; 26 Jul 2016 14:47:30 +0000 Received: from localhost ([127.0.0.1]:38243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bS3dm-0007GI-VX for submit@debbugs.gnu.org; Tue, 26 Jul 2016 10:47:30 -0400 Received: from mail-qt0-f173.google.com ([209.85.216.173]:34161) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bS3di-0007G3-NN for 24067-done@debbugs.gnu.org; Tue, 26 Jul 2016 10:47:26 -0400 Received: by mail-qt0-f173.google.com with SMTP id u25so7991398qtb.1 for <24067-done@debbugs.gnu.org>; Tue, 26 Jul 2016 07:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=X4rnkwzcMTyI2Dj7zDCRrbPBgJR0SBoKqqlvEgqMz8A=; b=TIg2NchZHELKXcS5QAEByBtNo2m2x556vUJxtz38u4PIcdi+3+A+Ar1y4EpmbHFF1j pgi2UmDS3QQRu5xpXlBWjMS+fl0d1xyiZy2ELcQCJZAa+B142cNKFBp25GKhygwYsgXZ Yc7QIIU6EsbCFLp5HeREeslylLusYwWfZtYFANJ06g7JM3TFZxPtegB4J8B4Kof4akn5 tFs2NQegbI0vdjGbl40NxSs3sQI3eccHWpl6KsjQsQ9ttPm35l+W0A1Nn06qhQVCRrbd xOlZVPArtMvDf98rBPkaLoKaKqiUhDAQl19Mjch0EtSjBG3nXr/rkD3ncHBeBgy8ZLWP ER/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=X4rnkwzcMTyI2Dj7zDCRrbPBgJR0SBoKqqlvEgqMz8A=; b=ZEnqwo4ly/hxObRpMcWWMoRKB11Nod/YJddlZfGXkPrqOM2Vs9MBCtFT8uPo9GAqfz 70aVUvmTXydzGYIzOnUXxO/FWbeqMVrk9uFIRN+vkenm6O1ORQFacV1F6NmUKY2Ffjiv M4uqtoxpCcVgRqSfrhpFPXwxLTFro0ZJDqHO9Sw8tB2TjfKVSkO+WhmxDiBSpBv0X3Bd 0tbv9eIfVe7adFxger9CVEjK+kUKAzsWFnpbFej7zl7cNiVHnIb3WCmGmHMpbwKkaN01 d2cQvx0g4w6DVwZZIIklFyQcZZ5potpobQc0gw2HcbeSr3Qr/Rd1zVODLo3588yGCnVZ yPFQ== X-Gm-Message-State: AEkoouuZTxjNtQcKTW4f74XiliPAk9xlXRB2UXl6SwkLtlsqKVhVSG/p9JL9h4iYswX8wBs+TyajaJX/JdTMXg== X-Received: by 10.200.55.137 with SMTP id d9mr39059868qtc.46.1469544436583; Tue, 26 Jul 2016 07:47:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.159.7 with HTTP; Tue, 26 Jul 2016 07:46:57 -0700 (PDT) In-Reply-To: <48a113c0-2611-94ee-0266-2a8e16e25626@cs.ucla.edu> References: <48a113c0-2611-94ee-0266-2a8e16e25626@cs.ucla.edu> From: bibek ghimire Date: Tue, 26 Jul 2016 09:46:57 -0500 Message-ID: Content-Type: multipart/alternative; boundary=001a113565161fd74905388afa14 X-Spam-Score: -0.7 (/) 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 (/) --001a113565161fd74905388afa14 Content-Type: text/plain; charset=UTF-8 Hi Paul, When I use type grep I get following : $ type grep grep is a function grep () { /usr/bin/grep --color=auto $* } When I use which grep I get following: $which grep /usr/bin/grep -Solti On Tue, Jul 26, 2016 at 2:15 AM, Paul Eggert wrote: > It appears that you have an alias or other implementation of 'grep', and > that this is not a bug in GNU 'grep' per se. If you are using a shell like > 'bash', try these two shell commands to see which 'grep' you are actually > using. > > type grep > which grep > > --001a113565161fd74905388afa14 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Paul,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0When I use = type grep I get following :

$ type grep

grep is a function

grep ()=C2=A0

{=C2=A0

=C2=A0 =C2=A0 /usr/bin/grep = --color=3Dauto $*

}

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 When I us= e which grep I get following:

$which grep

/usr/bin/grep



-Sol= ti


=

On Tu= e, Jul 26, 2016 at 2:15 AM, Paul Eggert <eggert@cs.ucla.edu> wrote:
It appears that you have an alia= s or other implementation of 'grep', and that this is not a bug in = GNU 'grep' per se. If you are using a shell like 'bash', tr= y these two shell commands to see which 'grep' you are actually usi= ng.

type grep
which grep


--001a113565161fd74905388afa14-- From unknown Fri Jun 13 10:20:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24067: Bug Report : How to grep and treat meta character as normal character? Resent-From: Jim Meyering Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Tue, 26 Jul 2016 15:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24067 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: bibek ghimire Cc: Paul Eggert , 24067-done@debbugs.gnu.org Received: via spool by 24067-done@debbugs.gnu.org id=D24067.146954567129716 (code D ref 24067); Tue, 26 Jul 2016 15:08:02 +0000 Received: (at 24067-done) by debbugs.gnu.org; 26 Jul 2016 15:07:51 +0000 Received: from localhost ([127.0.0.1]:38252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bS3xQ-0007j8-NL for submit@debbugs.gnu.org; Tue, 26 Jul 2016 11:07:50 -0400 Received: from mail-io0-f174.google.com ([209.85.223.174]:35187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bS3xJ-0007ip-Je for 24067-done@debbugs.gnu.org; Tue, 26 Jul 2016 11:07:43 -0400 Received: by mail-io0-f174.google.com with SMTP id m101so24834813ioi.2 for <24067-done@debbugs.gnu.org>; Tue, 26 Jul 2016 08:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=csqFbHYfllzki1DXWo/IycM3zyMjm1/AOX2MfcGbxN4=; b=XJ71S9VMcGN8b52pR1v+oPlQCf9m/SIj3Sk4sj/HyAaVOIigfZmz5X6IjsRmm76tOl +VnSRuEwvpcj2YsfxU3DH2Usbk+ZrhgYfCROoUSEUn+11P7fJIl9cgP3msHMxjFQLOE/ HILPXDCMu200nT6WqQvMpB+nxiSpWjlNgDf6etOFsrxW30fexL87L+VLmDZwIRQZReSR wOGGWxfGC49dUFNWdkF+KYc2yfKxnvl5KjQ6Cp+nwndqJSviDsyuqSQCAmNfO2yxs6qC iuHMgExze2BUl3OZJ2wMN7aYf2+XiTkQjUYKuFPdR9CwzJ+s5Eyo7NSBmBgD2e1svM2h T8Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=csqFbHYfllzki1DXWo/IycM3zyMjm1/AOX2MfcGbxN4=; b=UQ9bjcwNxKHu8xlrx8BY1H8/Q0ZNMaivYphziQH+PLmRKULkYLmQscYlotwgtOEvPu W4z4waUxObtzhzB3Q8d55g3nMXigU6qw3tnmDAXzDnflCjRRnrogswlNixJa4BELfSGv FqtPe6oDeRz0AeOddRgTF0t17OXHOvkqh9y2Crubv8BPk+XvbcAS7+K/ZIqruA5sxl0T 854JCO5wg7YVIis2tjA5zABO+hMGsYV6L/mxb7LF1w/AeXWB9FOE8i16VW1eH49HZyuo iEm3vHPoTd6LZsONTBhqPagbHudQYJvwJuijJrjFmh8HG2WRREhdOpVIKjSLMtvTAUVp XxoA== X-Gm-Message-State: AEkoousmwqXJRijoZCjnQJHF72/ER/oHBdxBj+yBY4I8V+NYDGVmQWbHrSXY+k73yRCzZq2g0hep0GKhwc5TOA== X-Received: by 10.157.12.219 with SMTP id o27mr12401813otd.103.1469545649631; Tue, 26 Jul 2016 08:07:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.3.130 with HTTP; Tue, 26 Jul 2016 08:07:09 -0700 (PDT) In-Reply-To: References: <48a113c0-2611-94ee-0266-2a8e16e25626@cs.ucla.edu> From: Jim Meyering Date: Tue, 26 Jul 2016 08:07:09 -0700 X-Google-Sender-Auth: hjDT1zKA3FyhJ3dSRRQ2e4mfEZw Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) 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 (/) On Tue, Jul 26, 2016 at 7:46 AM, bibek ghimire wrote: > /usr/bin/grep --color=auto $* That function is erroneous due to the use of unquoted $*. Use this instead, which fixes that, and also works when the executable grep is not in /usr/bin: grep() { env grep --color=auto "$@"; } From unknown Fri Jun 13 10:20:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24067: Bug Report : How to grep and treat meta character as normal character? Resent-From: bibek ghimire Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Tue, 26 Jul 2016 15:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24067 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: Jim Meyering Cc: Paul Eggert , 24067-done@debbugs.gnu.org Received: via spool by 24067-done@debbugs.gnu.org id=D24067.146954676531482 (code D ref 24067); Tue, 26 Jul 2016 15:27:01 +0000 Received: (at 24067-done) by debbugs.gnu.org; 26 Jul 2016 15:26:05 +0000 Received: from localhost ([127.0.0.1]:38281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bS4F6-0008BM-DV for submit@debbugs.gnu.org; Tue, 26 Jul 2016 11:26:05 -0400 Received: from mail-qk0-f170.google.com ([209.85.220.170]:33620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bS4F0-0008B5-Ir for 24067-done@debbugs.gnu.org; Tue, 26 Jul 2016 11:25:58 -0400 Received: by mail-qk0-f170.google.com with SMTP id p74so9117759qka.0 for <24067-done@debbugs.gnu.org>; Tue, 26 Jul 2016 08:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7DDQD0LIsBkFhAeERaENYOmNYHOhFkg0KDqGIH4mk3M=; b=nWhOu34RXoAWik4dvgaIiS50vRisV+zQz6JVGksbaY7ydeA5gcW9K51OSjA3HMPeVp hOU9G69oE6g+nQFtLDOcH1JUk1zw8U8l6UkKsQS6YefJhmnzVfFcU3zODJvuZUZHFmYP aUKTNFJUQQsUfTZvbJTDE6LD6l01lGEDerrvpzh4XoZb1Q0tpuKNxzgNadM8FVVtWbL1 cCgVTcKSbGD57blTmNNM4Flr2696ApYgwGIaUNDowdOIjQSU8D0aKNLKrtwaJ8J7fZRl 5AAM65SCCjawcdTIjbFCo6MUgeGdcQl9jmIDcTyU94gUudEskiiD08j5UXGDCG/7Rmaq P0rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7DDQD0LIsBkFhAeERaENYOmNYHOhFkg0KDqGIH4mk3M=; b=YZoWf7x4HzDKD/AWJxU3jqMTMayZcbaRMQ5ZsqHNNa4/RrTNVqZzHw0D6r4LpL/3UN 6fLgttnkyCmCcZuxsDYPn5Im4Ctoe6oze3bFnSjl7pJkODY1xmpcbHsQbOe6cJdQKHcx FwO951eJEUTCUUE78GCdv+iuIP0g+C6AjhXzOzi1hwSRFmHIeHUwfzikrlClA4q/ExoD kDOpzRspyty6aN9LbGt1g4hPPHmo9QOX4nSMoLKSOPVX5r+7HPixyfQSSCVA+qGXPHFL RlLMWRL6/HKrBjNKvUc1o4KVt8AXpbWjZwRFchHmBkfUQ2OiuKHEC32cXFt+vg0KaF0s XmfQ== X-Gm-Message-State: AEkooutOYEO2q964/hL3TnzqyR6epd+BhZlNZy506hQIczccaqEG6kwJjfdY2jIxUJQvpyWFZsk6tZhClch5dw== X-Received: by 10.55.159.87 with SMTP id i84mr31539062qke.115.1469546749071; Tue, 26 Jul 2016 08:25:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.159.7 with HTTP; Tue, 26 Jul 2016 08:25:29 -0700 (PDT) In-Reply-To: References: <48a113c0-2611-94ee-0266-2a8e16e25626@cs.ucla.edu> From: bibek ghimire Date: Tue, 26 Jul 2016 10:25:29 -0500 Message-ID: Content-Type: multipart/alternative; boundary=001a114d31b0f59f6f05388b8329 X-Spam-Score: -0.7 (/) 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 (/) --001a114d31b0f59f6f05388b8329 Content-Type: text/plain; charset=UTF-8 Hi Jim, After following your comment, the error (I am not sure now if I could call it an error) has gone. So you were right, it was due to the way I was handling positional parameters in my .profile file. Sol: changing from grep () { /usr/bin/grep --color=auto $* } to grep () { /usr/bin/grep --color=auto "$@" } solved it. (Not sure ';' is required here ) -Bibek On Tue, Jul 26, 2016 at 10:07 AM, Jim Meyering wrote: > On Tue, Jul 26, 2016 at 7:46 AM, bibek ghimire wrote: > > /usr/bin/grep --color=auto $* > > That function is erroneous due to the use of unquoted $*. > Use this instead, which fixes that, and also works when the executable > grep is not in /usr/bin: > > grep() { env grep --color=auto "$@"; } > --001a114d31b0f59f6f05388b8329 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Jim,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0After follow= ing your comment, the error (I am not sure now if I could call it an error)= has gone. So you were right, it was due to the way I was handling=C2=A0pos= itional parameters in my .profile file.

Sol: chang= ing from =C2=A0 =C2=A0

grep ()=C2= =A0

{=C2=A0

=C2=A0 =C2=A0 /usr/bin/grep --color=3Dauto $*

}


to=C2=A0

grep ()=C2=A0

{=C2=A0

=C2=A0 =C2=A0 /= usr/bin/grep --color=3Dauto "$@"

}

solved it. (Not sure ';' is required here )
<= div>
-Bibek

On Tue, Jul 26, 2016 at 10:07 AM, Jim Meyering <jim@mey= ering.net> wrote:
On Tue, = Jul 26, 2016 at 7:46 AM, bibek ghimire <gbibek@gmail.com> wrote:
>=C2=A0 =C2=A0 =C2=A0/usr/bin/grep --color=3Dauto $*

That function is erroneous due to the use of unquoted $*.
Use this instead, which fixes that, and also works when the executable
grep is not in /usr/bin:

grep() { env grep --color=3Dauto "$@"; }

--001a114d31b0f59f6f05388b8329--