From owner-cvs-all@FreeBSD.ORG Fri Jun 23 11:13:32 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06BDD16A4A5; Fri, 23 Jun 2006 11:13:32 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEA6643D45; Fri, 23 Jun 2006 11:13:27 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id k5NBDNdG076961; Fri, 23 Jun 2006 15:13:23 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id k5NBDMJh076960; Fri, 23 Jun 2006 15:13:22 +0400 (MSD) (envelope-from yar) Date: Fri, 23 Jun 2006 15:13:21 +0400 From: Yar Tikhiy To: Florent Thoumie Message-ID: <20060623111321.GD75374@comp.chem.msu.su> References: <200606210942.k5L9gtAi060504@repoman.freebsd.org> <1150883785.3467.4.camel@mayday.esat.net> <20060621105253.GE45947@comp.chem.msu.su> <1150887909.3467.18.camel@mayday.esat.net> <20060621113901.GG45947@comp.chem.msu.su> <1150890968.3467.39.camel@mayday.esat.net> <20060621122331.GI45947@comp.chem.msu.su> <1150907029.3467.49.camel@mayday.esat.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1150907029.3467.49.camel@mayday.esat.net> User-Agent: Mutt/1.5.9i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc rc.subr src/share/man/man8 rc.subr.8 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 11:13:32 -0000 On Wed, Jun 21, 2006 at 05:23:49PM +0100, Florent Thoumie wrote: > On Wed, 2006-06-21 at 16:23 +0400, Yar Tikhiy wrote: > > > > BTW, grep can be emulated with /bin/expr if needed: > > > > _grep() > > { > > while read _line; do > > [ `expr "$_line" : ".*$1"` != 0 ] && echo "$_line" > > done > > } > > > > Ditto for "grep -q". > > I guess we can even just use shell pattern matching with 'case'. Some scripts use egrep patterns, e.g., `linux(aout|elf)', which are problematic to handle even with expr, let alone shell. -- Yar