From unknown Thu Jun 19 14:12:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#56453 <56453@debbugs.gnu.org> To: bug#56453 <56453@debbugs.gnu.org> Subject: Status: Bug reports Reply-To: bug#56453 <56453@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:12:03 +0000 retitle 56453 Bug reports reassign 56453 grep submitter 56453 "GUI" <1678556598@qq.com> severity 56453 normal tag 56453 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 12:39:27 2022 Received: (at submit) by debbugs.gnu.org; 8 Jul 2022 16:39:27 +0000 Received: from localhost ([127.0.0.1]:33091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9r0k-0002wL-TV for submit@debbugs.gnu.org; Fri, 08 Jul 2022 12:39:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:55826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <1678556598@qq.com>) id 1o9mW7-0005M0-Ve for submit@debbugs.gnu.org; Fri, 08 Jul 2022 07:51:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <1678556598@qq.com>) id 1o9mW7-0007lp-4u for bug-grep@gnu.org; Fri, 08 Jul 2022 07:51:27 -0400 Received: from out203-205-221-236.mail.qq.com ([203.205.221.236]:48142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <1678556598@qq.com>) id 1o9mVv-0001PE-Mh for bug-grep@gnu.org; Fri, 08 Jul 2022 07:51:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1657281065; bh=ot6/lLKvUikYat6fgJT7qzWH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/SA3NALdumspZSq56L9eRxQG6l//rR47YBhfvJEz3/sd/Rk/Ifmp3 Ik5MPWafMC2Phlll4Nyp2i4vQq/95loLV9ibgX0y+EnVKf+xbQePXu0o6JakTGdoOEQHF1mFNjrpS TogB7trFrXVEqKLETOR/+qpj7pGU7YiZZm9e4x1/udb4sDm3XwgAw== X-HAS-ATTACH: no X-QQ-BUSINESS-ORIGIN: 2 X-Originating-IP: 112.22.177.88 X-QQ-STYLE: X-QQ-mid: webmail210t1657280141t9915856 From: "=?gb18030?B?R1VJ?=" <1678556598@qq.com> To: "=?gb18030?B?YnVnLWdyZXA=?=" Subject: Bug reports Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_62C8168D_11D70E70_7E994D2E" Content-Transfer-Encoding: 8Bit Date: Fri, 8 Jul 2022 19:35:41 +0800 X-Priority: 3 Message-ID: X-QQ-MIME: TCMime 1.0 by Tencent X-Mailer: QQMail 2.x X-QQ-Mailer: QQMail 2.x Received-SPF: pass client-ip=203.205.221.236; envelope-from=1678556598@qq.com; helo=out203-205-221-236.mail.qq.com X-Spam_score_int: 67 X-Spam_score: 6.7 X-Spam_bar: ++++++ X-Spam_report: (6.7 / 5.0 requ) BAYES_00=-1.9, CHARSET_FARAWAY_HEADER=3.2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.001, HELO_DYNAMIC_IPADDR=1.951, HTML_FONT_FACE_BAD=0.001, HTML_MESSAGE=0.001, MIME_CHARSET_FARAWAY=2.45, NO_FM_NAME_IP_HOSTN=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: reject X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 08 Jul 2022 12:39:22 -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: -2.1 (--) This is a multi-part message in MIME format. ------=_NextPart_62C8168D_11D70E70_7E994D2E Content-Type: text/plain; charset="gb18030" Content-Transfer-Encoding: base64 SSdtIGEgYmVnaW5uZXIgZm9yIExpbnV4Lg0KVG9kYXksIHdoZW4gSSB3YXMgbGVhcm5pbmcg dGhlIGdyZXAgY29tbWFuZCwgSSB1c2VkIHRoZSBtYW4gY29tbWFuZCB0byBjaGVjayBpdHMg bWFudWFsIGFuZCBmb3VuZCBhIHN1c3BpY2lvdXMgcG9pbnQuSW4gaXRzIERFU0NSSVBUSU9O LGl0IHNheXMgImdyZXAgIHNlYXJjaGVzICBmb3IgIFBBVFRFUk4gIGluICBlYWNoICBGSUxF LiAgIEEgRklMRSBvZiChsC2hsSBzdGFuZHMgZm9yIHN0YW5kYXJkIGlucHV0LiAgSWYgbm8g RklMRSBpcyBnaXZlbiwgcmVjdXJzaXZlIHNlYXJjaGVzIGV4YW1pbmUgdGhlIHdvcmtpbmcg ZGlyZWN0b3J5LCBhbmQgbm9ucmVjdXJzaXZlIHNlYXJjaGVzIHJlYWQgc3RhbmRhcmQgaW5w dXQuICBCeSBkZWZhdWx0LCBncmVwIHByaW50cyB0aGUgbWF0Y2hpbmcgbGluZXMuIEluIGFk ZGl0aW9uLCB0aGUgdmFyaWFudCBwcm9ncmFtcyBlZ3JlcCBhbmQgZmdyZXAgYXJlIHRoZSAg c2FtZSAgYXMgIGdyZXAgLUUgIGFuZCAgZ3JlcCAtRiwgIHJlc3BlY3RpdmVseS4gICBUaGVz ZSAgdmFyaWFudHMgIGFyZSBkZXByZWNhdGVkLCBidXQgYXJlIHByb3Z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hZHMnIHVuZGVyIHRoZSBjdXJyZW50IGZvbGRlciB+Lg0K SSBkb24ndCBrbm93IHdoeSBvciBUaGVyZSBpcyBzb21ldGhpbmcgd3Jvbmcgd2l0aCB0aGUg ZGVzY3JpcHRpb24gb2YgZ3JlcCBpbiB0aGUgbWFudWFsLg== ------=_NextPart_62C8168D_11D70E70_7E994D2E Content-Type: text/html; charset="gb18030" Content-Transfer-Encoding: base64 SSdtIGEgYmVnaW5uZXIgZm9yIExpbnV4Ljxicj48c3BhbiBzdHlsZT0iY29sb3I6IHJnYig0 MiwgNDMsIDQ2KTsgZm9udC1mYW1pbHk6ICZxdW90O1BpbmdGYW5nIFNDJnF1b3Q7LCAmcXVv dDtNaWNyb3NvZnQgWWFIZWkmcXVvdDssIM6iyO3RxbraLCDLzszlLCAmcXVvdDtNYWxndW4g R290aGljJnF1b3Q7LCBzYW5zLXNlcmlmOyBmb250LXNpemU6IDE2cHg7IHRleHQtYWxpZ246 IGp1c3RpZnk7IHdoaXRlLXNwYWNlOiBwcmUtd3JhcDsgYmFja2dyb3VuZC1jb2xvcjogcmdi KDI1MiwgMjUzLCAyNTQpOyI+VG9kYXksIHdoZW4gSSB3YXMgbGVhcm5pbmcgdGhlIGdyZXAg Y29tbWFuZCwgSSB1c2VkIHRoZSBtYW4gY29tbWFuZCB0byBjaGVjayBpdHMgbWFudWFsIGFu ZCBmb3VuZCBhIHN1c3BpY2lvdXMgcG9pbnQuPC9zcGFuPjxkaXYgc3R5bGU9InRleHQtYWxp Z246IGp1c3RpZnk7Ij48Zm9udCBjb2xvcj0iIzJhMmIyZSIgZmFjZT0iUGluZ0ZhbmcgU0Ms IE1pY3Jvc29mdCBZYUhlaSwgzqLI7dHFutosIMvOzOUsIE1hbGd1biBHb3RoaWMsIHNhbnMt c2VyaWYiPjxzcGFuIHN0eWxlPSJmb250LXNpemU6IDE2cHg7IHdoaXRlLXNwYWNlOiBwcmUt d3JhcDsgYmFja2dyb3VuZC1jb2xvcjogcmdiKDI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art_62C8168D_11D70E70_7E994D2E-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 13:03:25 2022 Received: (at 56453) by debbugs.gnu.org; 8 Jul 2022 17:03:25 +0000 Received: from localhost ([127.0.0.1]:33111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9rO0-0003X9-UV for submit@debbugs.gnu.org; Fri, 08 Jul 2022 13:03:25 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9rNy-0003Wx-Ou for 56453@debbugs.gnu.org; Fri, 08 Jul 2022 13:03:23 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 655E7160145; Fri, 8 Jul 2022 10:03:16 -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 eWAy1bieApdp; Fri, 8 Jul 2022 10:03:15 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id ACB61160148; Fri, 8 Jul 2022 10:03:15 -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 lzjTFbL4o0nO; Fri, 8 Jul 2022 10:03:15 -0700 (PDT) Received: from [192.168.0.205] (ip72-206-2-24.fv.ks.cox.net [72.206.2.24]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 60306160145; Fri, 8 Jul 2022 10:03:15 -0700 (PDT) Message-ID: <21e48ed4-ea2d-46d7-bf69-6daa3638c751@cs.ucla.edu> Date: Fri, 8 Jul 2022 12:03:14 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: bug#56453: Bug reports Content-Language: en-US To: GUI <1678556598@qq.com> References: From: Paul Eggert In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56453 Cc: 56453@debbugs.gnu.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 (---) On 7/8/22 06:35, GUI via Bug reports for GNU grep wrote: > [root@localhost ~]# grep Download dwad dawdwa Downloads Downloads ^C [root@localhost ~]# It looks like you typed the string "grep Download dwad dawdwa Downloads Downloads" and then typed control-C. This caused the shell to not execute grep at all. You need to type a CARRIAGE RETURN (labeled "Enter" on most keyboards) to actually run grep. Here's what happens when I run the command (properly entered) on my platform. grep matches its documentation here: since -r is not specified, the search is not recursive. $ grep Download dwad dawdwa Downloads Downloads grep: dwad: No such file or directory grep: dawdwa: No such file or directory grep: Downloads: Is a directory grep: Downloads: Is a directory From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 13:04:28 2022 Received: (at control) by debbugs.gnu.org; 8 Jul 2022 17:04:28 +0000 Received: from localhost ([127.0.0.1]:33115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9rP2-0003Yn-6o for submit@debbugs.gnu.org; Fri, 08 Jul 2022 13:04:28 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9rP0-0003Yb-Tp for control@debbugs.gnu.org; Fri, 08 Jul 2022 13:04:27 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A0DD4160145 for ; Fri, 8 Jul 2022 10:04:21 -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 8BifAWDDRgst for ; Fri, 8 Jul 2022 10:04:21 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 12A5F160148 for ; Fri, 8 Jul 2022 10:04:21 -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 E0t8tmZcieA0 for ; Fri, 8 Jul 2022 10:04:20 -0700 (PDT) Received: from [192.168.0.205] (ip72-206-2-24.fv.ks.cox.net [72.206.2.24]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id CEE86160145 for ; Fri, 8 Jul 2022 10:04:20 -0700 (PDT) Message-ID: Date: Fri, 8 Jul 2022 12:04:20 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Content-Language: en-US To: control@debbugs.gnu.org From: Paul Eggert Subject: 56453 is not a bug Content-Type: text/plain; charset=UTF-8; format=flowed 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 (---) tags 56453 notabug From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 13:32:00 2022 Received: (at submit) by debbugs.gnu.org; 8 Jul 2022 17:32:00 +0000 Received: from localhost ([127.0.0.1]:33130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9rpf-0006N6-QO for submit@debbugs.gnu.org; Fri, 08 Jul 2022 13:32:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:60290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9rpe-0006My-00 for submit@debbugs.gnu.org; Fri, 08 Jul 2022 13:31:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9rpd-00023X-2B for bug-grep@gnu.org; Fri, 08 Jul 2022 13:31:57 -0400 Received: from mail.spocom.com ([206.63.224.240]:57050) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9rpa-0007gk-FE for bug-grep@gnu.org; Fri, 08 Jul 2022 13:31:56 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; d=spocom.com; s=mail; h=received:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:x-operating-system :user-agent; b=h5pWCYsqW8aMyZieYv4mZlLea1eCHWCvFxypb9IMhzXyffKxJ8YTMZPZ07GBCPdS5 dsWPIbVXJ2oQijHE0J0yg== Received: from localhost (174-31-44-92.spkn.qwest.net [174.31.44.92]) by mail.spocom.com with SMTP; Fri, 8 Jul 2022 10:31:35 -0700 Date: Fri, 8 Jul 2022 10:32:04 -0700 From: Gary Johnson To: bug-grep@gnu.org Subject: Re: bug#56453: Bug reports Message-ID: <20220708173204.GE12539@phoenix> Mail-Followup-To: bug-grep@gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: Linux 2.6.32-74-generic GNU/Linux User-Agent: Mutt/1.5.20 (2009-06-14) Received-SPF: pass client-ip=206.63.224.240; envelope-from=garyjohn@spocom.com; helo=mail.spocom.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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: -2.3 (--) On 2022-07-08, GUI via Bug reports for GNU grep wrote: > I'm a beginner for Linux. > Today, when I was learning the grep command, I used the man > command to check its manual and found a suspicious point.In its > DESCRIPTION,it says "grep searches for PATTERN in each FILE. > A FILE of “-” stands for standard input. If no FILE is given, > recursive searches examine the working directory, and nonrecursive > searches read standard input. By default, grep prints the > matching lines. In addition, the variant programs egrep and fgrep > are the same as grep -E and grep -F, respectively. These > variants are deprecated, but are provided for backward > compatibility." > I think there are something wrong with the sentence 'If no FILE is > given, recursive searches examine the working directory, and > nonrecursive searches read standard input. ' . Pay attention to > the 'and' in "recursive searches examine the working directory, > and nonrecursive searches read standard input".When I use the grep > command,such as this: The sentence in the manual is correct as written. Note that a search can be recursive or nonrecursive, but not both. > [root@localhost ~]# grep Download dwad dawdwa Downloads Downloads ^C > [root@localhost ~]# > From this result,we can see that if no file is given, nonrecursive > searches read standard input instead of that rescursive searches > examine the working directory. As that command appears in your post, a file _is_ given. In fact, four file names are given; the last two are the same file. grep Download dwad dawdwa Downloads Downloads searches for the pattern Download in the files dwad, dawdwa, Downloads and Downloads. The search is nonrecursive since the command does not include either the -r nor -R options are given. The results indicate that the string Download is not found in any of those files. I don't know what the ^C at the end of your command means. ^C (Ctrl-C) normally kills the current command, but I don't think you want to do that here. > As we known, the working directory is ~,whose subdirectories have > 'Downloads'.So when you type grep Download on terminal, you > should see 'Downloads' under the current folder ~. I think you misunderstand what grep does. Grep searches for a pattern in the contents of files, or in the contents of its standard input. It does not search for a pattern in file names. If you want to search for a pattern in the names of the files in your working directory, use this pipeline instead: ls | grep Download The ls command will list all the file names in your working directory and grep will search that list for the string Download. > I don't know why or There is something wrong with the description > of grep in the manual. The description is fine. You just need a little more experience with Linux commands and with interpreting the manual pages. Their English is usually correct, but not always clear. Regards, Gary From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 23:43:01 2022 Received: (at 56453) by debbugs.gnu.org; 9 Jul 2022 03:43:01 +0000 Received: from localhost ([127.0.0.1]:33496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oA1My-0006n9-Mu for submit@debbugs.gnu.org; Fri, 08 Jul 2022 23:43:00 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oA1Mv-0006mt-Ur for 56453@debbugs.gnu.org; Fri, 08 Jul 2022 23:42:58 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 477DA160148; Fri, 8 Jul 2022 20:42: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 CDeDUFsz7580; Fri, 8 Jul 2022 20:42:50 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9072216015D; Fri, 8 Jul 2022 20:42: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 Zule1ear8B2l; Fri, 8 Jul 2022 20:42:50 -0700 (PDT) Received: from [192.168.0.205] (ip72-206-2-24.fv.ks.cox.net [72.206.2.24]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 473A4160148; Fri, 8 Jul 2022 20:42:50 -0700 (PDT) Message-ID: <03507176-8908-b8a1-abba-103f6d81b269@cs.ucla.edu> Date: Fri, 8 Jul 2022 22:42:50 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: =?UTF-8?B?UmU6IOWbnuWkje+8miBidWcjNTY0NTM6IEJ1ZyByZXBvcnRz?= Content-Language: en-US To: GUI <1678556598@qq.com> References: <21e48ed4-ea2d-46d7-bf69-6daa3638c751@cs.ucla.edu> From: Paul Eggert In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56453 Cc: 56453@debbugs.gnu.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 (---) On 7/8/22 21:53, GUI wrote: > " If no FILE is given, recursive searches examine the working directory, and nonrecursive searches read standard input. "You use the word 'and' to say 'If no FILE is given' when this happens, 'recursive searches Examine the working directory' and 'nonrecursive searches read standard input'. This statement is inconsistent with the result of running in terminal. Not at all. Several FILEs were given in your example: > $ grep Download dwad dawdwa Downloads Downloads > grep: dwad: No such file or directory > grep: dawdwa: No such file or directory > grep: Downloads: Is a directory > grep: Downloads: Is a directory Here 'dwad', 'dawdna', 'Downloads', and 'Downloads' are all FILEs. Since it's not the case that "no FILE is given", for your example it doesn't matter what the rest of that sentence says. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 14:24:20 2022 Received: (at 56453) by debbugs.gnu.org; 9 Jul 2022 18:24:20 +0000 Received: from localhost ([127.0.0.1]:35905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAF7s-00017i-5y for submit@debbugs.gnu.org; Sat, 09 Jul 2022 14:24:20 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:57842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAF7q-00017V-Bp for 56453@debbugs.gnu.org; Sat, 09 Jul 2022 14:24:19 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2DE6616016B; Sat, 9 Jul 2022 11:24:12 -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 GwrltjDvqKbC; Sat, 9 Jul 2022 11:24:11 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E8B3716016C; Sat, 9 Jul 2022 11:24:10 -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 VucAx8TczYlA; Sat, 9 Jul 2022 11:24:10 -0700 (PDT) Received: from [192.168.0.205] (ip72-206-2-24.fv.ks.cox.net [72.206.2.24]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 9620B16016B; Sat, 9 Jul 2022 11:24:10 -0700 (PDT) Message-ID: Date: Sat, 9 Jul 2022 13:24:09 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: =?UTF-8?B?UmU6IOWbnuWkje+8miDlm57lpI3vvJogYnVnIzU2NDUzOiBCdWcgcmVw?= =?UTF-8?Q?orts?= Content-Language: en-US To: GUI <1678556598@qq.com> References: <21e48ed4-ea2d-46d7-bf69-6daa3638c751@cs.ucla.edu> <03507176-8908-b8a1-abba-103f6d81b269@cs.ucla.edu> From: Paul Eggert In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56453 Cc: 56453@debbugs.gnu.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 (---) On 7/9/22 05:16, GUI wrote: > Thank you very much.I think there are something wrong with my expression. > > grep Download > > When you type something, hitting grep will do a row match > > The "grep Download" command has no file.So it is the case that"If no FILE is given, recursive searches examine the working  directory,  and nonrecursive searches read standard input. ". > > When I type the command,the terminal will do two things which are 'recursive searches Examine the working directory' and 'nonrecursive searches read standard input'.In this case, Download should be used as a matching string, but instead of going through all the files in the current directory, the terminal waits for the user's input. > > So I think it's a little different from what you wrote. > Plain "grep Download" does not use -r, so it's not recursive. Also, it specifies no FILE operands, so the sentence you quoted applies, and it searches standard input (in this case, the terminal). The command "grep -r Download", in contrast, is nearly equivalent to "grep -r Download .". That is, it recursively searches the working directory, ignoring standard input. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 22:36:38 2022 Received: (at submit) by debbugs.gnu.org; 10 Jul 2022 02:36:38 +0000 Received: from localhost ([127.0.0.1]:36099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAMoI-000103-6M for submit@debbugs.gnu.org; Sat, 09 Jul 2022 22:36:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:50454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAMoD-0000zs-OT for submit@debbugs.gnu.org; Sat, 09 Jul 2022 22:36:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAMoD-00022B-IZ for bug-grep@gnu.org; Sat, 09 Jul 2022 22:36:33 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:44337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAMoB-000304-Ud for bug-grep@gnu.org; Sat, 09 Jul 2022 22:36:33 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 62A285C0085 for ; Sat, 9 Jul 2022 22:36:28 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Sat, 09 Jul 2022 22:36:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1657420588; x=1657506988; bh=dZLL1vLmMjG/mR+WHuJlp9U2Qrsf vtVKKy4nQ/slreQ=; b=Yuc8SFNahucfiuLPJ416OAQO5/T1FTmb3nycrtZJ7gb7 CnUIcMpDMltmkuQeSLEbD3zvYRa/a60y5P6+QrKmGa7H7qQUMAICI2RYdFlgotFX AWZshiFiWcNqc3hwm76YburOT9sGT4OwqgOwRgej5LnzQ4gPKeSuz9bluoicdCA+ 8xAeRZ43pkLJM8lMv1qPlCcY3Xc9wveXMkJPIaQEPH17AjK193FD7arz7HeVkn2Y ecYNyNXelsH3GH8rQQSrjJ/FFIhPMJ0j4lmMX49hBoRC9W8rPF8hQJBxVnFZYn3J wx1vvKXWI0j6XWzVsm63FvBqVWmnsWE6cU9PEs2WDQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejtddgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderreejnecuhfhrohhmpedfrfgruhhlucflrggtkhhsohhnfdcuoehpjhesuhhsrgdr nhgvtheqnecuggftrfgrthhtvghrnhepiedvgeelkeejueetieeijeetkeffkeejgfeuke euvedtjeduheeuveefleetjeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepphhjsehushgrrdhnvght X-ME-Proxy: Feedback-ID: i047841af:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0BB3AB6007B; Sat, 9 Jul 2022 22:36:28 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-720-gbf5afa95ff-fm-20220708.001-gbf5afa95 Mime-Version: 1.0 Message-Id: In-Reply-To: <03507176-8908-b8a1-abba-103f6d81b269@cs.ucla.edu> References: <21e48ed4-ea2d-46d7-bf69-6daa3638c751@cs.ucla.edu> <03507176-8908-b8a1-abba-103f6d81b269@cs.ucla.edu> Date: Sat, 09 Jul 2022 21:35:09 -0500 From: "Paul Jackson" To: bug-grep@gnu.org Subject: =?UTF-8?Q?Re:_bug#56453:_=E5=9B=9E=E5=A4=8D=EF=BC=9A_bug#56453:_Bug_repo?= =?UTF-8?Q?rts?= Content-Type: text/plain Received-SPF: neutral client-ip=66.111.4.25; envelope-from=pj@usa.net; helo=out1-smtp.messagingengine.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit 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: -2.7 (--) It might not be evident to some, but grep (and many similar commands) do NOT initially decide if a command line argument refers to a file or not by checking (with a stat(2) system call or similar) if the argument actually refers to a file. Rather it's initial mode of operation is decided by the command line syntax. If you ask for a recursive search, such as with a "-d recurse" action or a "-r" argument, it expects some directories and/or files to be named, within which it can look (if a file), or recurse (if a directory) to find files, which it then does by actually using a stat(2) or similar system call on the names it finds in the directories it traverses. Otherwise grep expects some files to be named, which it can open and read, looking for the requested pattern, and in that non-recursive case, grep will complain if one of the names on the command line is a directory, not a file. It won't realize that failure, however, until it tries to open and read the named item, and fails to do so when a directory is named. Otherwise, if neither is named, or only a "-" file is named, it tries reading stdin (file descriptor 1) for the data it should search. -- Paul Jackson pj@usa.net