Date: Tue, 13 May 2003 10:07:48 +0200 From: Paul Schenkeveld <fb-hackers@psconsult.nl> To: =?iso-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= <mbsd@pacbell.net> Cc: hackers@freebsd.org Subject: Re: Bridge config in /etc/rc (patch) Message-ID: <20030513100747.A30389@psconsult.nl> In-Reply-To: <20030507205330.E310@atlas.home>; from mbsd@pacbell.net on Wed, May 07, 2003 at 08:58:56PM -0700 References: <1052346312.414067.669.nullmailer@cicuta.babolo.ru> <20030507205330.E310@atlas.home>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi All, On Wed, May 07, 2003 at 08:58:56PM -0700, Mikko Työläjärvi wrote: > 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" > } Please be ware of the following: # rc.conf snippet static_routes="goodyear \ firestone \ bridgestone" route_goodyear="... " route_firestone="... " route_bridgestone="... " bridge_foo="... " bridge_bar="... " Now `list_prefix bridge` will also list bridgestone because multi-line variables will not be properly detected by list_prefix. > It forks an extra process, I know... > > $.02, > /Mikko $2e-2 Paul Schenkeveld
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030513100747.A30389>