From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] rc break Date: Sat, 5 Aug 2006 20:50:43 -0400 From: geoff@plan9.bell-labs.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 97bcaa04-ead1-11e9-9d60-3106f5b1d025 One could rewrite the example script as # figure out what day we have by subtraction j = (Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec) c = () mon = () for (i in 31 $feb 31 30 31 30 31 31 30 31 30 31) if (~ $#mon 0) { c = ($c 1) if (expr $i '>' $d >/dev/null) mon = $#c if not d = `{expr $d - $i} } The lack of break may require recasting the form of a script.