From owner-freebsd-hackers@FreeBSD.ORG Thu May 8 16:23:02 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE0BA37B401 for ; Thu, 8 May 2003 16:23:02 -0700 (PDT) Received: from ints.mail.pike.ru (ints.mail.pike.ru [195.9.45.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9741843FB1 for ; Thu, 8 May 2003 16:23:01 -0700 (PDT) (envelope-from babolo@cicuta.babolo.ru) Received: (qmail 17342 invoked from network); 8 May 2003 23:42:04 -0000 Received: from babolo.ru (HELO cicuta.babolo.ru) (194.58.226.160) by ints.mail.pike.ru with SMTP; 8 May 2003 23:42:04 -0000 Received: (nullmailer pid 994 invoked by uid 136); Thu, 08 May 2003 23:26:18 -0000 X-ELM-OSV: (Our standard violations) hdr-charset=KOI8-R; no-hdr-encoding=1 In-Reply-To: <20030507205330.E310@atlas.home> To: "Mikko Ty?l?j?rvi" Date: Fri, 9 May 2003 03:26:18 +0400 (MSD) From: "."@babolo.ru X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <1052436378.826571.993.nullmailer@cicuta.babolo.ru> cc: hackers@freebsd.org Subject: Re: Bridge config in /etc/rc (patch) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2003 23:23:03 -0000 > On Thu, 8 May 2003 .@babolo.ru wrote: > [...] > > > Interesting... IF new builtin command will be written, > > has it chance to be accepted? > > such as "list prefix" lists all sh variables with > > names prefix* ? > > You mean something like: > > list_prefix() { > eval "set | > while read v; do case \$v in $1*) echo \"\${v%%=*}\";; esac; done" > } Exelent! I miss 'case' when seek for way to do such a task... > It forks an extra process, I know...