Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 2003 03:26:18 +0400 (MSD)
From:      "."@babolo.ru
To:        "Mikko Ty?l?j?rvi" <mbsd@pacbell.net>
Cc:        hackers@freebsd.org
Subject:   Re: Bridge config in /etc/rc (patch)
Message-ID:  <1052436378.826571.993.nullmailer@cicuta.babolo.ru>
In-Reply-To: <20030507205330.E310@atlas.home>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1052436378.826571.993.nullmailer>