unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Warning to those using rgrep on Mac OS X
@ 2012-12-17 18:03 Perry Smith
  0 siblings, 0 replies; 12+ messages in thread
From: Perry Smith @ 2012-12-17 18:03 UTC (permalink / raw)
  To: Emacs help

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 

.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




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-12-20 16:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.15544.1355767438.855.help-gnu-emacs@gnu.org>
2012-12-18  9:28 ` Warning to those using rgrep on Mac OS X Aidan Gauland
2012-12-18 10:27   ` Thierry Volpiatto
2012-12-18 17:34     ` Eli Zaretskii
2012-12-18 18:07       ` Thierry Volpiatto
2012-12-18 19:13         ` Eli Zaretskii
2012-12-18 19:33           ` Thierry Volpiatto
2012-12-18 20:04             ` Eli Zaretskii
     [not found]     ` <mailman.15621.1355852062.855.help-gnu-emacs@gnu.org>
2012-12-19  8:44       ` Vagn Johansen
2012-12-19 15:35         ` Eli Zaretskii
     [not found]         ` <mailman.15671.1355931355.855.help-gnu-emacs@gnu.org>
2012-12-20  9:57           ` Vagn Johansen
2012-12-20 16:20             ` Eli Zaretskii
2012-12-17 18:03 Perry Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).