From owner-freebsd-stable Thu Nov 18 9: 0:18 1999 Delivered-To: freebsd-stable@freebsd.org Received: from misha.cisco.com (misha.cisco.com [171.69.206.50]) by hub.freebsd.org (Postfix) with ESMTP id 4A72015374 for ; Thu, 18 Nov 1999 09:00:02 -0800 (PST) (envelope-from mi@misha.cisco.com) Received: (from mi@localhost) by misha.cisco.com (8.9.3/8.9.1) id LAA95008; Thu, 18 Nov 1999 11:58:25 -0500 (EST) (envelope-from mi) Message-Id: <199911181658.LAA95008@misha.cisco.com> Subject: Re: defaultrouter variable in /etc/rc.conf -- Used? In-Reply-To: <14388.9749.806244.632721@hip186.ch.intel.com> from John Reynolds~ at "Nov 18, 1999 09:15:17 am" To: John Reynolds~ Date: Thu, 18 Nov 1999 11:58:25 -0500 (EST) Cc: Tony Finch , stable@FreeBSD.ORG Reply-To: mi@aldan.algebra.com From: Mikhail Teterin X-Mailer: ELM [version 2.4ME+ PL60 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Reynolds~ once wrote: [...] > apparently not. > > > In the for loop that you quoted above, each name is taken from the > > $static_routes variable and put in $i, then the corresponding > > $route_name variable is located with the eval command and its value > > is copied to the $route_args variable whose is passed as the > > arguments to `route add`. > > > > The "default" in $static_routes is just another name > > that gets assigned to $i, so the eval command becomes > > `route_args=$route_default` which causes the next command to be > > `route add default $defaultrouter` [...] Interestingly, this same question popped up before, at least once... Just another reminder, that one should always search through the archives before asking a question. Haven't we been through EVERYTHING by now :-) ? -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message