Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.unix-wizards Subject: Re: In sh, is '[' a portable synonym for 'test'? Message-ID: <2379@brl-tgr.ARPA> Date: Thu, 24-Oct-85 10:26:04 EDT Article-I.D.: brl-tgr.2379 Posted: Thu Oct 24 10:26:04 1985 Date-Received: Fri, 25-Oct-85 04:45:42 EDT References: <482@phri.UUCP> <2887@sun.uucp> <531@moncol.UUCP> <5242@elsie.UUCP> <537@moncol.UUCP> <2918@sun.uucp> Organization: Ballistic Research Lab Lines: 25 > ... If you *do* > have an S5 license, use its shell instead - it's much improved (the S5R2 > version even has Bourne's bastard Algol 68 expunged, finally, although it > still has the whacky method for storage allocation which causes plenty of > problems on machines which won't let user-mode code restart or continue > instructions). This is real easy to fix. /* @(#)blok.c 1.4 */ ... addblok(reqd) ... bloktop = bloktop->word = (struct blk *)(Rcheat(bloktop) + reqd); #ifdef mc68000 /* or if you just want to be sure */ /* at this point, bloktop may be beyond the break. I haven't been * able to make the 68010 allow you to continue from a user bus * trap after executing a signal handler that fixes up the bus * trap, so we'll simply do a more intelligent thing and test * the bloody thing before we use it. -- Wes Chalfant, FileNet Corp. */ if ((char *)&bloktop->word >= brkend) fault(SIGSEGV); #endif bloktop->word = (struct blk *)(brkbegin + 1);