From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#23451: 25.0.93; Clarify the dependency on find/grep for platforms not having those tools Date: Mon, 29 May 2017 11:50:42 +0300 Message-ID: <26c7e970-5ca6-65f1-f26d-28e674a01a40@yandex.ru> References: <2d674c13-6626-bbd6-e461-c4de963167c4@yandex.ru> <8c71b311-263a-6e2c-3160-f1bbaa14e979@yandex.ru> <87shjo4ben.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1496048025 25537 195.159.176.226 (29 May 2017 08:53:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 May 2017 08:53:45 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Thunderbird/54.0 Cc: 23451@debbugs.gnu.org, Kaushal Modi To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 29 10:53:33 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFGQb-00061O-Ko for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 May 2017 10:53:29 +0200 Original-Received: from localhost ([::1]:47550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFGQf-0004n3-8o for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 May 2017 04:53:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFGOJ-0002b8-HC for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 04:51:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFGOE-0001lt-M1 for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 04:51:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39825) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFGOE-0001lp-EF for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 04:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dFGOE-0006kM-4U for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 04:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 May 2017 08:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23451 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23451-submit@debbugs.gnu.org id=B23451.149604785325918 (code B ref 23451); Mon, 29 May 2017 08:51:02 +0000 Original-Received: (at 23451) by debbugs.gnu.org; 29 May 2017 08:50:53 +0000 Original-Received: from localhost ([127.0.0.1]:42502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFGO4-0006jy-Lx for submit@debbugs.gnu.org; Mon, 29 May 2017 04:50:52 -0400 Original-Received: from mail-wm0-f48.google.com ([74.125.82.48]:37389) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFGO3-0006jm-G6 for 23451@debbugs.gnu.org; Mon, 29 May 2017 04:50:51 -0400 Original-Received: by mail-wm0-f48.google.com with SMTP id d127so49837372wmf.0 for <23451@debbugs.gnu.org>; Mon, 29 May 2017 01:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xySpDV2mwiuU4uYyr+qYSYsrS8jFAla7VEyyd3mG2RA=; b=UkSbV5cGR3ATJXybLuTpqqj4ylXfpxdgsR9yvwmeAz9tk8J9/O3c5bpAfTJnEwfYUq uW+UMWFBPVmce8kFANRpVWPOfNjphNFz+WT0/XgHOtNy1PLNhrSUWNWfqjquJkUJmnct cK7HBx8E7GTW5n8Tme39yZoVfP8ptU3x26zspYzwrVMqKtIvcOH0W58QZEueuSzQqRjj vd99pHf46YC8Sgik5pPKSrjj902fSqDU4KXJQhUWeR2YODUyw8Qi73w7vS/New6G2OC1 k/nkxxJRlgO2e6qIYSjWbE5jBY5SnW4QPl4sTElYW1uAXWOokHfdfF6VZhQikI99TMRu 6owA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xySpDV2mwiuU4uYyr+qYSYsrS8jFAla7VEyyd3mG2RA=; b=sJe2sN+JvwMU59mR0j9AOl7G0YJdxFR/gDXUjpYCZDhsWsw9/DTty6rBaCPrjwb8/x 9goLZuK6//nG2vc9G04dJx+bL/ol3Csb5hgHsW90s3fQlnFYGxKny1qUwp/fF5x1NzkX mk4gqJyqAhmqVDl1G9k8ax0xSdkOJ28QhagGwtKnV6mgnqyTifU6DTf/94Y8tmsL87VG Q3G+KmzR8CpJj5OtG7C2d7HZgBF2N/K0ddwMZQwWD/DnE5fCPO+h97hfw2q5slywYUvR /9HPn5Cj5cHdkP75T3cVphbDeOwR+HFSH5q4wLA+I1Q3vRMVkgTswBsRPrGeROtGxi0d Kipg== X-Gm-Message-State: AODbwcAZ26yZ3OJ6PPPTc4Xj2ScozG9u8UswOfDFIv0ly+y237L9Ieqo qSbNIt8Lmyf+ew== X-Received: by 10.28.87.72 with SMTP id l69mr19364780wmb.111.1496047844612; Mon, 29 May 2017 01:50:44 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id q77sm10628670wmb.4.2017.05.29.01.50.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 May 2017 01:50:43 -0700 (PDT) In-Reply-To: <87shjo4ben.fsf@users.sourceforge.net> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132985 Archived-At: On 5/29/17 5:58 AM, npostavs@users.sourceforge.net wrote: > So when is grep, and the number of files is greater than the > command line length limit, the exit status is effectively random (it > depends on 'find' decides to group the batches of files it passes to > 'grep'). Can we make Grep exit with 0 no matter if it matched something or not? So that non-zero means an actual problem. There is no suitable command-line option, it seems, but maybe there's a shell-based option? Like 'grep ... || exit 0', but I don't think we want to swallow exit statuses higher than 1. Alternatively, I suppose we can learn to determine that the user has no working find and grep inside grep-compute-defaults, and possibly avoid setting grep-find-template in that case.