9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <rsc@swtch.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Borderless rio
Date: Wed, 29 Apr 2009 08:48:09 +1000	[thread overview]
Message-ID: <dd6fe68a0904281548u1dbc51d3jc79845a808462cc@mail.gmail.com> (raw)
In-Reply-To: <a81fe9be0904261130k551347eg62e51a8236249466@mail.gmail.com>

> I also have a question. I'm running this script to open rio with workspaces :
> %vx ; cat bin/rc/riows
> #!/bin/rc
>
> 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.

the better way is to make each one of your giant
quoted strings its own shell script.  that's more
useful too.

russ


      parent reply	other threads:[~2009-04-28 22:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-26 18:30 yy
2009-04-27 11:39 ` erik quanstrom
2009-04-28 22:48 ` Russ Cox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dd6fe68a0904281548u1dbc51d3jc79845a808462cc@mail.gmail.com \
    --to=rsc@swtch.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).