From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200206132323.TAA03099@math.psu.edu> To: 9fans@cse.psu.edu Subject: Re: [9fans] bug or a feature? In-Reply-To: Your message of "Thu, 13 Jun 2002 16:05:06 PDT." <748e6357e2fd57bfed6cfc8317a0ef9c@plan9.bell-labs.com> From: Dan Cross Date: Thu, 13 Jun 2002 19:23:59 -0400 Topicbox-Message-UUID: ac832bd6-eaca-11e9-9e20-41e7f4b1d025 > given that i can't write > > if foo > bar > else > baz > > i'm happiest with > > if foo > bar > if not > baz > > as compared with > > if foo{ > bar > }else > baz > > or > > if foo > bar; else > baz > > am i misunderstanding unix rc? No, you're not. I *always* put statements following if or else in braces, so for me, I'd much rather see else. I suppose the lesson is that neither rc implementation makes everyone happy. I guess this will remain an issue where Bourne's shell is superior to rc; clearly td thought it was a wart and that the former did better; I believe his reasons still stand. - Dan C.