Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2009 13:20:08 -0800
From:      Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
To:        freebsd-questions@freebsd.org, yuri@rawbw.com
Subject:   Re: rc.conf when ssid has spaces in it: missing documentation or missing feature?
Message-ID:  <200906111320.08907.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
In-Reply-To: <4A31632C.7060005@rawbw.com>
References:  <4A315B15.5030000@rawbw.com> <200906111155.15644.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> <4A31632C.7060005@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 
<ifname> one can easily trace how the ifconfig_<ifname> variable is evaluated 
and where the backslashes are consumed.
-- 
Mel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906111320.08907.mel.flynn%2Bfbsd.questions>