home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / apple2 / gno / 720 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  2.9 KB

  1. Path: sparky!uunet!newsflash.concordia.ca!clyde.concordia.ca!altitude!vandry
  2. From: vandry@CAM.ORG (Phillip Vandry)
  3. Newsgroups: comp.sys.apple2.gno
  4. Subject: Shells
  5. Message-ID: <BzzEGz.73G@CAM.ORG>
  6. Date: 28 Dec 92 18:10:10 GMT
  7. Organization: Champlain Regional College, St-Lambert QC  CANADA
  8. Lines: 64
  9.  
  10. Anyone use zsh? It's a really excellent shell. But it's huge and I don't
  11. realistically expect there ever to be a version for GNO.
  12.  
  13. There are a few things from zsh that would be nice for GNO, though. For instance
  14.  
  15. echo `qtime`         - replaces `qtime` with the standard output from qtime,
  16.                        then passes that as a paramater to echo.
  17.  
  18. You could do the same thing with just qtime, but there are cases when it's not
  19. that simple (I can't remember now, of course :), but I would have used that
  20. once a while ago)
  21.  
  22. Also, history substitutions. If, for example, you want to add an alias to
  23. your system, you do this.
  24.  
  25. alias stuff otherstuff
  26. echo !1 >>~/gshrc               - echo the previous line to the file.
  27.  
  28. !1 means first line in the history, !2, the second, and so on.
  29.  
  30. gsh also needs a way to run a series of proceses in the background, but
  31. sequentially.
  32.  
  33. process1 & process2 & process3 &
  34.  
  35. will start them all up simultaneously, I think. You should be able to do....
  36.  
  37. ( process1 ; process2 ; process3 ) &
  38.  
  39. run them one after the other.
  40.  
  41. Also, this is a little less related to shells, but how do you do this...
  42.  
  43. Say you have a background process and you want to change a paramater or
  44. something. A pipe through which data can be sent to it? No: the pipe would
  45. have had to be created when the process was and hooked to some other process
  46. (well, there's always named pipes, but...). I suspect that UNIX processes do
  47. this by making you put them in the foreground temporarily. It would change
  48. modes, accept commands, then go back into the background and continue what it
  49. was doing. But this sounds like it has a few little problems. Like it doesn't
  50. really work well from within a program. The most logical thing to do, from, for
  51. example, C, would be something along the lines of...
  52.  
  53.   open(something-that-lets-you-write-data-to-a-process)
  54.   write(with-the-fd-you-got-from-open)
  55.  
  56. That's named pipes as UNIX implements them, isn't it?
  57.  
  58. Well, most of that stuff is a wish list anyway.
  59.  
  60. ---
  61. RE: gsh not connected to the kern.
  62.  
  63. Who intercepts the ORCA Execute call (system() in C). I thought kern took care
  64. of all intercepting of things, but that command sting has to make it to gsh
  65. somehow for parsing and execution... What is there are several shells running?
  66. Who gets the Execute call? 
  67.  
  68. Gotta change my sig now.....
  69.  ______________________________________________________________________
  70. |~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  71. | Phillip Vandry | Vandry@Cam.Org | Merry Christmas II you!            |
  72. |________________|________________|____________________________________|
  73.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  74.