bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fw: grep recursive problem


From: John Cowan
Subject: Re: Fw: grep recursive problem
Date: Fri, 20 Oct 2006 15:17:38 -0400
User-agent: Mutt/1.3.28i

dan1 scripsit:

> However, I would like to ask it to you all seriously, don't you think that
> we should consider doing something to grep so that people can use the first
> command I suggested (grep -r i80word *.php) to get the same result?

What you ask for is impossible.  Grep never sees the "*.php", because Unix
shells (unlike DOS and Windows ones) automatically expand that to the
names of files in the current directory ending in ".php".  What happens
if there are no such files depends on the shell:  csh and tcsh report errors
by default, others pass through the unaltered "*.php", which is interpreted
by grep as an actual file name.

-- 
A: "Spiro conjectures Ex-Lax."                  John Cowan
Q: "What does Pat Nixon frost her cakes with?"  address@hidden
  --"Jeopardy" for generative semanticists      http://www.ccil.org/~cowan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]