From owner-freebsd-questions@FreeBSD.ORG Thu Jun 11 21:20:15 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FD90106566B for ; Thu, 11 Jun 2009 21:20:15 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id D04478FC16 for ; Thu, 11 Jun 2009 21:20:13 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from smoochies.rachie.is-a-geek.net (mailhub.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 18BE87E837; Thu, 11 Jun 2009 13:20:10 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org, yuri@rawbw.com Date: Thu, 11 Jun 2009 13:20:08 -0800 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <4A315B15.5030000@rawbw.com> <200906111155.15644.mel.flynn+fbsd.questions@mailing.thruhere.net> <4A31632C.7060005@rawbw.com> In-Reply-To: <4A31632C.7060005@rawbw.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906111320.08907.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Subject: Re: rc.conf when ssid has spaces in it: missing documentation or missing feature? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2009 21:20:15 -0000 On Thursday 11 June 2009 12:03:56 Yuri wrote: > Mel Flynn wrote: > > So escape use and escape the quotes with a backslash. You may need more > > then one backslash, depending on the level of evaluation in /etc/rc.subr > > and /etc/rc.d/netif. > > I believe documentation should describe this since this is a major > element of setting wireless network up. Perhaps. > If that's more than one backslash that's bad since it makes it cryptic. > I will investigate and will file a PR with patch. Knowledge of how sh treats variables is assumed for any unix admin. The level of escaping might be cryptic to some, but using sh -x /etc/rc./netif start one can easily trace how the ifconfig_ variable is evaluated and where the backslashes are consumed. -- Mel