Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!knuth!mjbtn!raider!elgamy!elg From: elg@elgamy.raidernet.com (Eric Lee Green) Newsgroups: comp.sys.amiga.programmer Subject: Re: UNIX*ish* Amiga software Message-ID: <00677915505@elgamy.raidernet.com> Date: 26 Jun 91 04:51:45 GMT References: <1991Jun20.093756.1638@wpi.WPI.EDU> Organization: Eric's Amiga 2000 @ Home Lines: 39 From article , by dillon@overload.Berkeley.CA.US (Matthew Dillon): > In article <1991Jun20.093756.1638@wpi.WPI.EDU> chrisf@wpi.WPI.EDU (Chris H. Foley) writes: >>Hi there folks. I'm amazed. I was just talking to a friend of mine who's an >>ST fanatic and he told me (and showed me) that they have BASH (a GREAT shell >>which would elevate the amiga to a new level of software development > I have the bash source in my in-bin for a while but, alas, no time > to port it. Don't let this stop anyone else from porting it through! > I have *lots* of unix stuff in my in-bin which I haven't touched in > months. You too, eh? BTW, I've found a neat solution for the problems with Unix vs. Amiga unlink() semantics... my new "unlink()" calls DeleteFile(), and if the return from IoErr() is OBJECT_BUSY (or whatever -- the file is open, in any event), I then shove it onto a list of "pending deletes". Each call to close(fh) then checks the list of pending deletes and tries them again. The exit code, after it has closed all the files, again checks that list of pending deletes. In the common case, where there's no pending deletes, this adds a MOV.L and a BNE.B to the execution stream... hardly a fatal slowdown for close(), considering that it has to do all sorts of jibberish anyhow. Of course, I'm doing all this under SAS/C, via some creative reverse-engineering (I first disassembled the library routines, then wrote "C" code until my disassembled code was identical to their disassembled code, before going in and making my mods). I really do need to ship my $50 for DICE, I guess, except that I'm so addicted to Codeprobe... sigh. Only time I've fired up DICE in the past six months was to re-compile "getty" to handle my modem right. > In anycase, something like Bash ought to be breeze under 2.0 Almost everything is a breeze under 2.0 :-). -- Eric Lee Green (318) 984-1820 P.O. Box 92191 Lafayette, LA 70509 elg@elgamy.RAIDERNET.COM uunet!mjbtn!raider!elgamy!elg Looking for a job... Unix/Amiga/C... tips, leads appreciated.