Re: rc.conf when ssid has spaces in it: missing documentation or missing feature?

2009-06-11 Thread Glen Barber
On Thu, Jun 11, 2009 at 3:29 PM, Yuriy...@rawbw.com wrote:
 I can't find any references in rc.conf(5) on how to set up ifconfig line if
 SSID has spaces which is very typical situation.
 ifconfig(8) doesn't mention this either but it works if I put quotes around
 it.

 I would assume spaces should be substituted for '_' like in Linux. But I
 remember I wasn't able to make it work for some reason.


Did you try escaping it?

My\ SSID\ Has\ Spaces

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: rc.conf when ssid has spaces in it: missing documentation or missing feature?

2009-06-11 Thread Mel Flynn
On Thursday 11 June 2009 11:29:25 Yuri wrote:
 I can't find any references in rc.conf(5) on how to set up ifconfig line
 if SSID has spaces which is very typical situation.
 ifconfig(8) doesn't mention this either but it works if I put quotes
 around it.

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 would assume spaces should be substituted for '_' like in Linux. But I
 remember I wasn't able to make it work for some reason.

The reason probably being that underscores are different characters from 
spaces and FreeBSD not making assumptions on things really being other things.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: rc.conf when ssid has spaces in it: missing documentation or missing feature?

2009-06-11 Thread Yuri

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.

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.

Yuri

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: rc.conf when ssid has spaces in it: missing documentation or missing feature?

2009-06-11 Thread Mel Flynn
On Thursday 11 June 2009 11:55:15 Mel Flynn wrote:
 On Thursday 11 June 2009 11:29:25 Yuri wrote:
  I can't find any references in rc.conf(5) on how to set up ifconfig line
  if SSID has spaces which is very typical situation.
  ifconfig(8) doesn't mention this either but it works if I put quotes
  around it.

 So escape use
strike that escape.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: rc.conf when ssid has spaces in it: missing documentation or missing feature?

2009-06-11 Thread Mel Flynn
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org