From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Gnu Emacs Bug: rgrep, “find: invalid predicate `-nam'”
Date: Thu, 17 Nov 2011 01:19:54 -0800 (PST) [thread overview]
Message-ID: <10480e2b-b6fb-48c6-b9c2-7d8d19dfadbc@l23g2000pro.googlegroups.com> (raw)
Gnu Emacs Bug: rgrep, “find: invalid predicate `-nam'”
this seems to be a bug. Steps to reproduce:
Start GNU Emacs with -Q.
call “rgrep”. Search for anything.
You get the following result:
-*- mode: grep; default-directory: "c:/Users/h3/web/xahlee_org/emacs/"
-*-
Grep started at Thu Nov 17 00:49:37
find . "(" -path "*/SCCS" -o -path "*/RCS" -o -path "*/CVS" -o -path
"*/MCVS" -o -path "*/.svn" -o -path "*/.git" -o -path "*/.hg" -o -path
"*/.bzr" -o -path "*/_MTN" -o -path "*/_darcs" -o -path "*/{arch}" ")"
-prune -o "(" -name ".#*" -o -name "*.o" -o -name "*~" -o -name
"*.bin" -o -name "*.bak" -o -name "*.obj" -o -name "*.map" -o -name
"*.ico" -o -name "*.pif" -o -name "*.lnk" -o -name "*.a" -o -name
"*.ln" -o -name "*.blg" -o -name "*.bbl" -o -name "*.dll" -o -name
"*.drv" -o -name "*.vxd" -o -name "*.386" -o -name "*.elc" -o -name
"*.lof" -o -name "*.glo" -o -name "*.idx" -o -name "*.lot" -o -name
"*.fmt" -o -name "*.tfm" -o -name "*.class" -o -name "*.fas" -o -name
"*.lib" -o -name "*.mem" -o -name "*.x86f" -o -name "*.sparcf" -o -
name "*.fasl" -o -name "*.ufsl" -o -name "*.fsl" -o -name "*.dxl" -o -
name "*.pfsl" -o -name "*.dfsl" -o -name "*.p64fsl" -o -name
"*.d64fsl" -o -name "*.dx64fsl" -o -name "*.lo" -o -name "*.la" -o -
name "*.gmo" -o -name "*.mo" -o -name "*.toc" -o -name "*.aux" -o -
name "*.cp" -o -name "*.fn" -o -name "*.ky" -o -name "*.pg" -o -name
"*.tp" -o -name "*.vr" -o -name "*.cps" -o -name "*.fns" -o -name
"*.kys" -o -name "*.pgs" -o -name "*.tps" -o -name "*.vrs" -o -name
"*.pyc" -o -name "*.pyo" ")" -prune -o -type f "(" -iname "*" -o -
iname ".*" ")" -exec grep -i -n "grep" {} NUL ";"
FIND: Parameter format not correct
Grep exited abnormally with code 2 at Thu Nov 17 00:49:37
This is GNU Emacs version “GNU Emacs 23.3.1 (i386-mingw-nt6.1.7601) of
2011-03-10 on 3249CTO”.
If you are using ErgoEmacs with -Q, you get this extra info “find:
invalid predicate `-nam'”, like this:
-*- mode: grep; default-directory: "c:/Users/h3/web/xahlee_org/emacs/"
-*-
Grep started at Thu Nov 17 00:36:51
find . "(" -path "*/SCCS" -o -path "*/RCS" -o -path "*/CVS" -o -path
"*/MCVS" -o -path "*/.svn" -o -path "*/.git" -o -path "*/.hg" -o -path
"*/.bzr" -o -path "*/_MTN" -o -path "*/_darcs" -o -path "*/{arch}" ")"
-prune -o "(" -name ".#*" -o -name "*.beam" -o -name "*.vee" -o -name
"*.jam" -o -name "*.o" -o -name "*~" -o -name "*.bin" -o -name "*.bak"
-o -name "*.obj" -o -name "*.map" -o -name "*.ico" -o -name "*.pif" -o
-name "*.lnk" -o -name "*.a" -o -name "*.ln" -o -name "*.blg" -o -name
"*.bbl" -o -name "*.dll" -o -name "*.drv" -o -name "*.vxd" -o -name "*.
386" -o -name "*.elc" -o -name "*.lof" -o -name "*.glo" -o -name
"*.idx" -o -name "*.lot" -o -name "*.fmt" -o -name "*.tfm" -o -name
"*.class" -o -name "*.fas" -o -name "*.lib" -o -name "*.mem" -o -name
"*.x86f" -o -name "*.sparcf" -o -name "*.fasl" -o -name "*.ufsl" -o -
name "*.fsl" -o -name "*.dxl" -o -name "*.pfsl" -o -name "*.dfsl" -o -
name "*.p64fsl" -o -name "*.d64fsl" -o -name "*.dx64fsl" -o -name
"*.lo" -o -name "*.la" -o -name "*.gmo" -o -name "*.mo" -o -name
"*.toc" -o -name "*.aux" -o -name "*.cp" -o -name "*.fn" -o -name
"*.ky" -o -name "*.pg" -o -name "*.tp" -o -name "*.vr" -o -name
"*.cps" -o -name "*.fns" -o -name "*.kys" -o -name "*.pgs" -o -name
"*.tps" -o -name "*.vrs" -o -name "*.pyc" -o -name "*.pyo" ")" -prune -
o -type f "(" -iname "*.html" ")" -print0 | xargs -0 -e grep -i -nH -
e "grep"
find: invalid predicate `-nam'
Grep finished with no matches found at Thu Nov 17 00:36:51
Seems quite a odd error. It appears that there's a typo somewhere that
contains -nam instead of -name, but i wasn't able to find it anywhere
so far. Note that this error occurs when starting emacs with -Q, so it
rules out personal init files.
Xah Lee
reply other threads:[~2011-11-17 9:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10480e2b-b6fb-48c6-b9c2-7d8d19dfadbc@l23g2000pro.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.