GNU bug report logs -
#5537
rgrep doesn't check if DIR exists
Previous Next
Reported by: jidanni <at> jidanni.org
Date: Sun, 7 Feb 2010 02:03:02 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
jidanni <at> jidanni.org wrote:
> (rgrep REGEXP &optional FILES DIR CONFIRM)
> Doesn't check if DIR exists!!
I think it does: When called interactively, it only lets you complete on
existing directory names. And when called non-interactively with a non-
existent directory, I get:
Debugger entered--Lisp error: (error "~/bar/: no such directory")
signal(error ("~/bar/: no such directory"))
error("%s: no such directory" "~/bar/")
cd-absolute("/Users/kevin/bar/")
cd("/Users/kevin/bar/")
compilation-start("find . \\( -path \\*/CVS -o -path \\*/.svn -o -path
\\*/\\{arch\\} -o -path \\*/.hg -o -path \\*/_darcs -o -path \\*/.git -o -path
\\*/.bzr \\) -prune -o -type f \\( -iname \\*.\\[ch\\] \\) -exec grep -i -nH -e
foo {} /dev/null \\;" grep-mode)
rgrep("foo" "*.[ch]" "~/bar")
eval((rgrep "foo" "*.[ch]" "~/bar"))
eval-last-sexp-1(t)
eval-last-sexp(t)
eval-print-last-sexp()
call-interactively(eval-print-last-sexp)
--
Kevin Rodgers
Denver, Colorado, USA
This bug report was last modified 15 years and 136 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.