From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs-25 10597c9: Don't use 'find-program' Date: Sun, 17 Apr 2016 20:39:03 +0300 Message-ID: <83poto9lu0.fsf@gnu.org> References: <20160411164301.22548.38008@vcs.savannah.gnu.org> <83potpbwbb.fsf@gnu.org> <83h9f1bcvd.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1460914788 16258 80.91.229.3 (17 Apr 2016 17:39:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Apr 2016 17:39:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 17 19:39:48 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1arqfg-0000Ap-2l for ged-emacs-devel@m.gmane.org; Sun, 17 Apr 2016 19:39:44 +0200 Original-Received: from localhost ([::1]:49512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arqfa-0005qt-HD for ged-emacs-devel@m.gmane.org; Sun, 17 Apr 2016 13:39:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arqfL-0005o3-CL for emacs-devel@gnu.org; Sun, 17 Apr 2016 13:39:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arqfH-0005hn-Bj for emacs-devel@gnu.org; Sun, 17 Apr 2016 13:39:23 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arqfH-0005hj-8V for emacs-devel@gnu.org; Sun, 17 Apr 2016 13:39:19 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4755 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1arqfG-0000G2-1l; Sun, 17 Apr 2016 13:39:18 -0400 In-reply-to: (message from Glenn Morris on Sun, 17 Apr 2016 13:15:06 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203020 Archived-At: > From: Glenn Morris > Cc: emacs-devel@gnu.org > Date: Sun, 17 Apr 2016 13:15:06 -0400 > > So: > find -exec grep > > should use find-grep-program > > but > find -exec rhubarb > > should use find-program? Why are you assuming that any 'find' job would necessarily use -exec? > Please can you give me an example of when this would make sense. Did you ever need to customize this variable, on any system? Because if you didn't, I'm not sure you will ever be able to understand the need. Users of GNU/Linux will never need to use this variable. But since you asked: you might have 2 versions of 'find' (under different names), one that is good at invoking programs via -exec, the other that supports the -print0 action. Basically, imagine a system with several different ports of 'find', each port with its own advantages and bugs.