From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MM0uw-0007d2-Qz for garchives@archives.gentoo.org; Wed, 01 Jul 2009 14:36:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B16D4E04AE; Wed, 1 Jul 2009 14:36:09 +0000 (UTC) Received: from mail-ew0-f211.google.com (mail-ew0-f211.google.com [209.85.219.211]) by pigeon.gentoo.org (Postfix) with ESMTP id 77343E04AE for ; Wed, 1 Jul 2009 14:36:09 +0000 (UTC) Received: by ewy7 with SMTP id 7so1044076ewy.34 for ; Wed, 01 Jul 2009 07:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=5Ss/1X9gmFymxGcOGZ+sJ7gX1Si+JYl8eYj44hro0bw=; b=OlRSpcbz1xMmRChLHEOkSkqDQBoFl7TbHGKExkCyRGjXT8gSOo/VKZuI1I6yTWPhqo VCe1Hf6E87/Ph3RyQtknM6MqQCjv5AELUJS1mrnr0Y0/c7F+kgnYzhpvA5DUuohF8XGn BfEeI01LoUgkUCliU77axAKT0a637p7Rh5MaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=GtV4uDI9R97lERmFWXsCTW+3PRT//CGKoPxx1eYgamPCueGAGwgHgKoX+GzNyRIa/I zVHIrMRujZHw5AuDTaHvnRPm6mHQlg7m0HOr0MpTszbH5RrhnA5GwTjCnPTD43hsvOFa ZcyJEfOT/qmtgZ1EEsOokCYzit0Vs52PebZTU= Received: by 10.210.114.15 with SMTP id m15mr4872441ebc.97.1246458968707; Wed, 01 Jul 2009 07:36:08 -0700 (PDT) Received: from nazgul.localnet (dustpuppy.is.co.za [196.14.169.11]) by mx.google.com with ESMTPS id 10sm2127706eyz.51.2009.07.01.07.36.07 (version=SSLv3 cipher=RC4-MD5); Wed, 01 Jul 2009 07:36:08 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Is grep broken? Date: Wed, 1 Jul 2009 16:34:28 +0200 User-Agent: KMail/1.11.4 (Linux/2.6.30-gentoo-r1; KDE/4.2.4; x86_64; ; ) References: <200907011530.26396.peter@humphrey.ukfsn.org> In-Reply-To: <200907011530.26396.peter@humphrey.ukfsn.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907011634.28497.alan.mckinnon@gmail.com> X-Archives-Salt: 31f65a11-1323-49be-be1e-1369593f5e1a X-Archives-Hash: 49cba151c4da10effb3ff68a86f30fd3 On Wednesday 01 July 2009 16:30:26 Peter Humphrey wrote: > Hello list, > > Can anyone explain this to me? > > $ /bin/grep -r hmenu *html > index.html:
> master.html:
> pictures.html:
> > $ /bin/grep -r hmenu pages/*html > pages/community.html:
> pages/contacts.html:
> pages/history.html:
> pages/music.html:
> pages/news.html:
> pages/people.html:
> pages/pictures.html:
> > Grep is clearly disobeying the recursion command. I started noticing this a > few days ago, and it's making maintenance of this directory hard work. You equally clearly do not understand how recursion works. You told it to grep through all the html files starting from pages/ and it did so. You did not tell it to start from pages/.. so why do you think it should do so? -- alan dot mckinnon at gmail dot com