From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <65e36c043167477045d47b3d99da4b64@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] rc break Date: Sat, 5 Aug 2006 19:42:52 -0400 From: geoff@plan9.bell-labs.com In-Reply-To: <68947f82dd2ff93603d7352019e90b28@quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 97b23ab0-ead1-11e9-9d60-3106f5b1d025 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.