From owner-freebsd-current@FreeBSD.ORG Sun Apr 18 14:02:40 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDFB916A4CE for ; Sun, 18 Apr 2004 14:02:40 -0700 (PDT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD4EC43D53 for ; Sun, 18 Apr 2004 14:02:39 -0700 (PDT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i3IL6m6k077064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 19 Apr 2004 00:06:50 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i3IL2Yqc014737; Mon, 19 Apr 2004 00:02:34 +0300 (EEST) (envelope-from ru) Date: Mon, 19 Apr 2004 00:02:29 +0300 From: Ruslan Ermilov To: Brooks Davis Message-ID: <20040418210229.GA14628@ip.net.ua> References: <1082233506.408192a2c476a@webservices.migus.org> <20040417235302.GC3534@Odin.AC.HMC.Edu> <20040417201913.P34536@sasami.jurai.net> <20040418005436.GC14645@Odin.AC.HMC.Edu> <1082258483.4081f43366454@webservices.migus.org> <20040418035435.GF14645@Odin.AC.HMC.Edu> <1082264575.40820bff559cd@webservices.migus.org> <20040418183445.GA24308@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <20040418183445.GA24308@Odin.AC.HMC.Edu> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: current@FreeBSD.org Subject: Re: VLAN support in rcNG [PATCH] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Apr 2004 21:02:41 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 18, 2004 at 11:34:45AM -0700, Brooks Davis wrote: > There is little or no complexity depending on how you solve the problem. > My proposal was to let the kernel support _ which would > require no modifications to the rc system. If you wanted to do it in > the rc system, the equivalent of "tr . _" would have to be applied to > the name before using the pseudo associative array lookup hack, that's > it. The only difficulty is that you have to do it without anything in > /usr. >=20 Shell is quite a powerful tool: foo=3Dxl0_2 echo ${foo%_*}.${foo##*_} This replaces the last underscore with a dot. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAguzlUkv4P6juNwoRAgZOAJ9iU7TAQ1syoK8FmV8UXW1qRgzNbQCfTdjw Eo9R4ww3PKYWd29h+P9yJnc= =9RZK -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--