[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ^Z signal



Dave Nicol writes :
> Is there a way of suspending a foreground process in es using the ^Z signal
> thing ... When I try it with Vi, the whole shell exits ...
>
> What signal does ^Z correspond to ??

that's job control. es doesn't have it.
(too much added complexity - it might be nice, but it's not necessary)

(^Z usually generates a SIGTSTP signal, which the shell turns
into a SIGSTOP sent to the currently running process - at least,
that's my understanding of it; i've never written the code myself)

what primitives are actually necessary to allow an implementation 

of job control within es ?

On a previous note (about the proposed %read implementation), it
is not always necessary to read a character at a time; the original
bourne shell read in multiples of BUFSIZ on files that were seekable,
and single characters otherwise.

I'm in favour of %read, but could we keep things like gnu readline
out of it ? If line editing is desired, an external program is really
more appropriate - it's only when reading non-interactively that the
performance really matters.

  cheers,
    rog.