Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!cmcl2!brl-adm!adm!rbj@icst-cmr.arpa From: rbj@icst-cmr.arpa (Root Boy Jim) Newsgroups: comp.unix.questions Subject: Why does this shell program run under csh???? Message-ID: <7804@brl-adm.ARPA> Date: Wed, 10-Jun-87 16:05:54 EDT Article-I.D.: brl-adm.7804 Posted: Wed Jun 10 16:05:54 1987 Date-Received: Sat, 20-Jun-87 04:32:45 EDT Sender: news@brl-adm.ARPA Lines: 46 >It would have been laughable to expect people to change all their >existing scripts just so some grad student from a western university >could distinguish input meant for his program rather than one written >by several PhD's at an eastern public utility research lab. So he did >the next best thing, and proclaimed that his program wouldn't run >anything unless the first character was an octothorp, and would defer >to his better educated predecessors' program instead. ... > (Root Boy) Jim Cottrell It seems to be that Jim is being fast and loose with the better education implies better programming paridigm here. Bourn shell works, I don't think there's any doubt which camp I stand in. I was being cute. and has fewer bugs than Csh does, but if you look at the sources, you will discover that the thing is written in a poor excuse for Algol, implemented with the C pre-processor. Also, memory is allocated by So what? I commend the guy for doing things his own way instead of merely going along with someone's poor excuse for syntax, namely the `one statement if model'. Since this is not net.lang.c I won't belabor the point. Whether you like or dislike this style is up to you, but if anyone who has trouble with it should be ashamed. trying to access the new memory, then if a segmentation fault happens, allocate by moving the break forward and trying again. Pretty poor programming practice. I don't see why. By that argument, demand paging sucks too. And how do you think user programs get new stack space allocated? -- Paul Placeway Department of Computer and Information Science SNail: The Ohio State University 2036 Neil Ave. Columbus OH USA 43210-1277 ARPA: paul@ohio-state.{arpa,csnet} (soon): paul@tut.cis.ohio-state.edu UUCP: ...!cbosgd!osu-eddie!paul (Root Boy) Jim Cottrell National Bureau of Standards Flamer's Hotline: (301) 975-5688 Maybe we could paint GOLDIE HAWN a rich PRUSSIAN BLUE--