> labels=$* > if(test $#labels -lt 1) > labels=(1 2 3 4) > > rio.b -I -i'\ > for(label in $labels) > window -miny 40 ''rio -i ''''label ''$label'''''''' > # give time to set all the labels > sleep 0.5 > window -dy 39 ''winwatch -e ''''^(winwatch|stats|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.
you could use here documents, but i don't really think that would be better. it's interesting that duff's shell does fall into the same quoting pit as bourne's, just in more esoteric situations. - erik