From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 29 Apr 2009 08:48:09 +1000 Message-ID: Subject: Re: [9fans] Borderless rio From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: f47383be-ead4-11e9-9d60-3106f5b1d025 > I also have a question. I'm running this script to open rio with workspac= es : > %vx ; cat bin/rc/riows > #!/bin/rc > > labels=3D$* > if(test $#labels -lt 1) > =C2=A0 =C2=A0 =C2=A0 =C2=A0labels=3D(1 2 3 4) > > rio.b -I -i'\ > =C2=A0 =C2=A0 =C2=A0 =C2=A0for(label in $labels) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0window -miny 40 ''= rio -i ''''label ''$label'''''''' > =C2=A0 =C2=A0 =C2=A0 =C2=A0# give time to set all the labels > =C2=A0 =C2=A0 =C2=A0 =C2=A0sleep 0.5 > =C2=A0 =C2=A0 =C2=A0 =C2=A0window -dy 39 ''winwatch -e ''''^(winwatch|sta= ts|faces)''''''' > > My question is: what is the better way to avoid that lot of quotes? I > can think of variables or functions, but I wonder what is the idiom > for nested quotes. the better way is to make each one of your giant quoted strings its own shell script. that's more useful too. russ