From: geoff@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] rc break
Date: Sat, 5 Aug 2006 19:42:52 -0400 [thread overview]
Message-ID: <65e36c043167477045d47b3d99da4b64@plan9.bell-labs.com> (raw)
In-Reply-To: <68947f82dd2ff93603d7352019e90b28@quanstro.net>
I think this will work (modified from an rc script of mine):
while (! ~ $#* 0 && ~ $1 -* && ! ~ $1 --) {
switch ($1) {
case -a; destsonly=yes
case -b; copies=($copies $2) ; shift
case -c; copies=($copies $user)
case -v; verbose=yes
case -*
echo usage: $0 '[-acv] [-b bcc] [file]...' >[1=2]
exit usage
}
shift
}
# process $*, which now lacks options ...
I think this is the only situation in which I used to wish for `break'
in rc, but it no longer seems worthwhile.
next prev parent reply other threads:[~2006-08-05 23:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-05 15:39 erik quanstrom
2006-08-05 20:59 ` "Nils O. Selåsdal"
2006-08-06 4:25 ` erik quanstrom
2006-08-05 23:42 ` geoff [this message]
2006-08-06 5:18 ` erik quanstrom
2006-08-06 0:50 ` geoff
2006-08-06 6:04 ` erik quanstrom
2009-05-12 1:52 erik quanstrom
2009-05-12 5:08 ` Uriel
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=65e36c043167477045d47b3d99da4b64@plan9.bell-labs.com \
--to=geoff@plan9.bell-labs.com \
--cc=9fans@cse.psu.edu \
/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).