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 1M2k1f-0003Lq-3x for garchives@archives.gentoo.org; Sat, 09 May 2009 10:43:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A3CABE01C3; Sat, 9 May 2009 10:43:25 +0000 (UTC) Received: from smtpout.karoo.kcom.com (smtpout.karoo.kcom.com [212.50.160.34]) by pigeon.gentoo.org (Postfix) with ESMTP id 672A1E01C3 for ; Sat, 9 May 2009 10:43:25 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.40,320,1238972400"; d="scan'208";a="96394277" Received: from unknown (HELO compaq.stroller.uk.eu.org) ([213.152.39.90]) by smtpout.karoo.kcom.com with ESMTP; 09 May 2009 11:43:24 +0100 Received: from [192.168.1.71] (unknown [192.168.1.71]) by compaq.stroller.uk.eu.org (Postfix) with ESMTP id 2C613137BF2 for ; Sat, 9 May 2009 11:43:22 +0100 (BST) Message-Id: <690D7319-77E2-42B2-9D15-93EB6E937E18@stellar.eclipse.co.uk> From: Stroller To: gentoo-user@lists.gentoo.org In-Reply-To: <200905091241.51424.shrdlu@unlimitedmail.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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 (Apple Message framework v930.3) Subject: Re: [gentoo-user] 'if echo hello' in .bashrc Date: Sat, 9 May 2009 11:43:22 +0100 References: <742F0C43-196E-465B-9991-3DFF1C655803@stellar.eclipse.co.uk> <5E74755A-7D9B-4286-B1B1-91735F1F7C07@stellar.eclipse.co.uk> <200905091241.51424.shrdlu@unlimitedmail.org> X-Mailer: Apple Mail (2.930.3) X-Archives-Salt: c5f96f99-d517-4519-b7f1-bf8ddf5a0d5f X-Archives-Hash: d33a362f0f3e903e836c0f0f54bdf278 On 9 May 2009, at 11:41, Etaoin Shrdlu wrote: >> ... >> Let's say we use BSD grep or Schilling grep or whatever - is there >> actually any harm in exporting GREP_OPTIONS='--color=auto' in this >> case? > > Yes, because if the grep implementation in question supports > GREP_OPTIONS > but doesn't support --color, you'll get errors when it's run. > > (The assumption ... is that if --color is supported, then > GREP_OPTIONS is too, which is reasonable and is what happens for GNU > grep, although I cannot speak for other implementations). So this keeps the .bashrc compatible with older versions of GNU grep. That hadn't occurred to me. My question is: Do BSD & other greps also support GREP_OPTIONS ? Stroller.