From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <490725B4-4F2D-42BA-B6D0-D634402E0429@mac.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> From: Pietro Gagliardi Date: Wed, 28 Nov 2007 17:28:52 -0500 Subject: [9fans] rc complaining about syntax error on { Topicbox-Message-UUID: 0e04fde6-ead3-11e9-9d60-3106f5b1d025 Hello. I was writing a program called 12 which displays twelve-hour time. It accepts the following options: -g show time as part of date output -u sent to date date's -n option is rejected. The default behavior is to show only the 12-hour time. Now when I run this feature-complete version, it gives me an error saying that '}' on line 24(?) is a syntax error. Huh? I added flag x + but apparently rc scans its whole input for errors before executing, so it brings me no closer to a solution. The file is /n/sources/ contrib/pietro/12. What's going on?