home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!newsflash.concordia.ca!clyde.concordia.ca!altitude!vandry
- From: vandry@CAM.ORG (Phillip Vandry)
- Newsgroups: comp.sys.apple2.gno
- Subject: Shells
- Message-ID: <BzzEGz.73G@CAM.ORG>
- Date: 28 Dec 92 18:10:10 GMT
- Organization: Champlain Regional College, St-Lambert QC CANADA
- Lines: 64
-
- Anyone use zsh? It's a really excellent shell. But it's huge and I don't
- realistically expect there ever to be a version for GNO.
-
- There are a few things from zsh that would be nice for GNO, though. For instance
-
- echo `qtime` - replaces `qtime` with the standard output from qtime,
- then passes that as a paramater to echo.
-
- You could do the same thing with just qtime, but there are cases when it's not
- that simple (I can't remember now, of course :), but I would have used that
- once a while ago)
-
- Also, history substitutions. If, for example, you want to add an alias to
- your system, you do this.
-
- alias stuff otherstuff
- echo !1 >>~/gshrc - echo the previous line to the file.
-
- !1 means first line in the history, !2, the second, and so on.
-
- gsh also needs a way to run a series of proceses in the background, but
- sequentially.
-
- process1 & process2 & process3 &
-
- will start them all up simultaneously, I think. You should be able to do....
-
- ( process1 ; process2 ; process3 ) &
-
- run them one after the other.
-
- Also, this is a little less related to shells, but how do you do this...
-
- Say you have a background process and you want to change a paramater or
- something. A pipe through which data can be sent to it? No: the pipe would
- have had to be created when the process was and hooked to some other process
- (well, there's always named pipes, but...). I suspect that UNIX processes do
- this by making you put them in the foreground temporarily. It would change
- modes, accept commands, then go back into the background and continue what it
- was doing. But this sounds like it has a few little problems. Like it doesn't
- really work well from within a program. The most logical thing to do, from, for
- example, C, would be something along the lines of...
-
- open(something-that-lets-you-write-data-to-a-process)
- write(with-the-fd-you-got-from-open)
-
- That's named pipes as UNIX implements them, isn't it?
-
- Well, most of that stuff is a wish list anyway.
-
- ---
- RE: gsh not connected to the kern.
-
- Who intercepts the ORCA Execute call (system() in C). I thought kern took care
- of all intercepting of things, but that command sting has to make it to gsh
- somehow for parsing and execution... What is there are several shells running?
- Who gets the Execute call?
-
- Gotta change my sig now.....
- ______________________________________________________________________
- |~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
- | Phillip Vandry | Vandry@Cam.Org | Merry Christmas II you! |
- |________________|________________|____________________________________|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-