From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Warning to those using rgrep on Mac OS X Date: Mon, 17 Dec 2012 12:03:44 -0600 Message-ID: <24B4D5C1-33F1-45F5-AB11-D81812BEC9F5@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1355767441 26261 80.91.229.3 (17 Dec 2012 18:04:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2012 18:04:01 +0000 (UTC) To: Emacs help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 17 19:04:16 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Tkf31-0005JP-Gw for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Dec 2012 19:04:15 +0100 Original-Received: from localhost ([::1]:49768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tkf2o-0001AR-2n for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Dec 2012 13:04:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tkf2e-0001AK-LZ for help-gnu-emacs@gnu.org; Mon, 17 Dec 2012 13:03:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tkf2a-0000jr-An for help-gnu-emacs@gnu.org; Mon, 17 Dec 2012 13:03:52 -0500 Original-Received: from mail-ie0-f169.google.com ([209.85.223.169]:39452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tkf2a-0000jn-6B for help-gnu-emacs@gnu.org; Mon, 17 Dec 2012 13:03:48 -0500 Original-Received: by mail-ie0-f169.google.com with SMTP id c14so9719763ieb.0 for ; Mon, 17 Dec 2012 10:03:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=nPLfrYSupVh4EBENAuZ4nUiSwN7YMiIsuas/zn2qvrU=; b=hIMVKI+Wg6dkfKQszMiQ1l91kKNTaOYHArDL1u+T6b0qoXCVFYGfoimwaAmM89OOVc hAumt1dtCW4Al/U+kHn39p1d1VDRgS81XsNi6GNWtwaWflGt3qUtPyBpTeuKAiV2Y4EY WyPJPuRvzfqQoNHlXQo6YQqNhaRhnGKcRXOKMJGaqsiNtL9WeltniBnaVAF7/lRV6XMe K4txE1l4pq4YHVm5Zf4XWNd9fhiiLhDh142E0h0lvrpWteyRHg/cQrIELCZ/bAyBTSk+ W9HYYUAhLuiUlJ6kLaKX9Bpnc2y88gHc1rLN1H4gWFC9pHryIzpUHshEcwplnpTXxowy DDtA== Original-Received: by 10.50.42.168 with SMTP id p8mr9889629igl.57.1355767427090; Mon, 17 Dec 2012 10:03:47 -0800 (PST) Original-Received: from magicbook.austin.ibm.com ([32.97.110.54]) by mx.google.com with ESMTPS id vq4sm6131099igb.10.2012.12.17.10.03.45 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Dec 2012 10:03:46 -0800 (PST) X-Mailer: Apple Mail (2.1283) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.223.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88188 Archived-At: I'm using Mac OS 10.7.5 and emacs 24.1.1 Over the weekend I discovered that the command line that rgrep produces = does not work. This is not an emacs issue... I'm just trying to warn = people. I was not able to 100% characterize it but it appears that if the = matches are for files very far down the directory structure, *sometimes* = the command will just return immediately. I was matching = create_view_specs and the file that should have matched was at=20 = .bundle/gems/ruby/1.9.1/gems/rspec-rails-2.12.0/lib/generators/rspec/view/= view_generator.rb If I started at the file's directory, it matched. If I moved up one or = two directories, it matched. If I moved up three directories, it would = match but the string produced was not what the emacs pattern was looking = for. If I moved up four directories, the command would just immediately = return. Doing the same from the command line had the same results so = its not an emacs bug. The command is producing the -exec grep ..... + version. = grep-find-use-xargs is set to exec-plus There is no simple way to get setting grep-find-use-xargs to 'gnu to = work because out of the box, emacs adds in -e to xargs (which is = non-standard and the Mac doesn't have it). I don't really get what the = -e with no string is trying to do. I'm also slightly puzzled why the = grep-probe didn't try other argument patterns... I can't say I 100% = understand the code. If I hand edit the command using -print0 | xargs -0, it does match and = then emacs doesn't recognize the string grep issues. Perry