[comp.sys.amiga] CSH and SKSH

gilgalad@dip.eecs.umich.edu (Ralph Seguin) (06/03/90)

Hi.  I used CSH and SKSH all the time, I was just wondering whether or
not the authors had any intention of making these more UNIX like.
For instance, if I put an ampersand at the end, fork off a new shell
and execute the commands in the background.  It would probably make quite
a bit of sense if the shells were totally reentrant that way you could
save a ton of memory space.  Also, what about command expansion on
the command line, ie

foreach i ( `grep con stuff|awk -f stuff.awk` )
...

Also, is there any intention of adding more the stuff that can be found
in CSH?

I've also noted a bug or two in CSH 4.01A (It's been there for a long
time as far as I can tell).  Piping doesn't work very well.  That
is to say, piping to commands internal to the shell.  Also, the file
permissions don't work correctly.  I have an A2500/30.  When I do
an ls and another ls a short while later, I sometimes get different
results.

			Thanks, Ralph

 
gilgalad@dip.eecs.umich.edu       gilgalad@zip.eecs.umich.edu
gilgalad@caen.engin.umich.edu     Ralph_Seguin@ub.cc.umich.edu
gilgalad@sparky.eecs.umich.edu    USER6TUN@UMICHUB.BITNET

Ralph Seguin               |  In order to get infinitely many monkeys to type
565 South Zeeb Rd.         | something that actually makes sense, you need to
Ann Arbor, MI 48103        | have infinitely many monkey editors as well.
(313) 662-1506

koren@hpfelg.HP.COM (Steve Koren) (06/05/90)

> Hi.  I used CSH and SKSH all the time, I was just wondering whether or
> not the authors had any intention of making these more UNIX like.
> For instance, if I put an ampersand at the end, fork off a new shell
> and execute the commands in the background.  It would probably make quite

Yes, I would like to do that, but it means something else besides
just "running" an external binary in the background.  For example,
you can do something like this in ksh:

( while true
  do
     rm ~/.sh_history 2>/dev/null
     sleep 30
  done
) >/dev/null 2>&1 &

And you have run a shell construct in the background.  Well, it would
be very easy for me to add that capability in SKsh (since it supports
the rest of the stuff), but I am missing one important capability
in AmigaDos without which it is very difficult to accomplish that.
If this capability ever appears in a supported and usable manner, I
will certainly make SKsh t.  In the meantime, you will have to be
content with running external binaries in the background.

   - steve

kosma%human-torch@stc.lockheed.com (Monty Kosma) (06/06/90)

(example of & run-in-background stuff deleted)

   And you have run a shell construct in the background.  Well, it would
   be very easy for me to add that capability in SKsh (since it supports
   the rest of the stuff), but I am missing one important capability
   in AmigaDos without which it is very difficult to accomplish that.
   If this capability ever appears in a supported and usable manner, I
   will certainly make SKsh t.  In the meantime, you will have to be
   content with running external binaries in the background.

      - steve
What's the missing capability?