You are not logged in.

#1 2006-03-17 19:18:08

usenix
Member
From: Bremen, EU
Registered: 2004-06-30
Posts: 14

scripting: quotes within quotes

hi all!

I have to connect to an wireless network with a space in its name (orient 7). Connecting manually with iwconfig is no problem, but how do I setup the wireless script in /etc/conf.d since there are already double quotes?

I tried already:

wlan_wlan0="wlan0 ... "orient 7" ... "
wlan_wlan0='wlan0 ... "orient 7" ... '

but without success sad

Any help would be appreciated!

Offline

#2 2006-03-17 19:20:47

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: scripting: quotes within quotes

I think you could do

wlan_wlan0="wlan0 ... 'orient 7' ..."

or

wlan_wlan0="wlan0 ... "orient 7" ... "

But I have not tested either.


I am a gated community.

Offline

#3 2006-03-17 19:22:38

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: scripting: quotes within quotes

Is this a config file or a script you made? If it's a script, it often works fine with mixing single and double quotes.

Offline

#4 2006-03-17 19:54:02

usenix
Member
From: Bremen, EU
Registered: 2004-06-30
Posts: 14

Re: scripting: quotes within quotes

it's a config file but I suppose these lines are part of a script.

Neither of your suggestions couldn't help me - they are interpreted as:

"orient 7'"

and

"orient 7""

Offline

#5 2006-03-17 21:48:07

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: scripting: quotes within quotes

How about a backslash?

wlan_wlan0="wlan0 ... orient 7 ... "

Offline

Board footer

Powered by FluxBB