On Tue, May 15, 2007, Murray Taylor wrote: > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of >> Gunther Mayer >> Sent: Tuesday, 15 May 2007 5:46 AM >> To: freebsd-questions@freebsd.org >> Subject: Spaces in SSID in /etc/rc.conf >> >> Hi there, >> >> I got a low key server who is wirelessly connected to the net >> using an >> SSID that contains a space. In rc.conf I define the ifconfig line for >> configuration of my wireless interface upon bootup, but the >> entire line >> reads something like >> >> ifconfig_ath0=' inet 192.168.0.1 ssid "my network" ' >> >> No matter how I tweak the quotes (single then double, other >> way round, >> with lots of \\) I never get my interface to configure properly upon >> bootup and I need to get to the console to fix it up. I >> thought I knew >> shell syntax but this is beyond me or manpages... >> >> What's the right way to do this? >> >> Gunther > >Have you tried this (I havent, its just a suggestion)... > >I use this construct to get around scp transfers and the >file names windoze users love to create with heaps of spaces...
I would look at the code that uses this as often this type of problems results from multiple expansions of an expression. In this case the variable ifconfig_ath0 is set to ``inet 192.168.0.1 ssid "my network"'', but that may well be used in an `eval` or some such resulting in multple expansions. Backwhacking the double quotes might help: ifconfig_ath0='inet 192.168.0.1 ssid \"my network\"' One could always cheat and create a simple script to execute instead of trying to fight the quoting wars. ifconfig_ath0='/usr/local/bin/mynetwork.sh' Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 ``Never do your enemy a minor injury.'' - Machiavelli _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"