Re: ksh93: pipelines vs. job control

Liste des GroupesRevenir à cu shell 
Sujet : Re: ksh93: pipelines vs. job control
De : martijn (at) *nospam* inlv.demon.nl (Martijn Dekker)
Groupes : comp.unix.shell
Date : 19. May 2024, 21:21:06
Autres entêtes
Message-ID : <lav1p2Fjj13U1@mid.individual.net>
References : 1
User-Agent : Mozilla Thunderbird
Op 13-05-2024 om 15:35 schreef Christian Weisgerber:
... and you're stuck.  There's no shell prompt, so you can't bg or fg
anything, intr (^C) or quit (^\) don't help, and there's no tty
control character to continue a suspended process (group).
 You need to take radical measures like hanging up, or sending a
SIGCONT or SIGKILL from a different terminal.
 I can't quite tell if this behavior constitutes a bug, but it seems
to follow from the design decision to not run the last command of
a pipeline in a subshell.  And it can trap the unwary.
  A more minimal example:
    $ /bin/sleep 10 | read
   ^Z
In my view, this is certainly a bug. The shell should not hang under any circumstances. I've filed it under:
https://github.com/ksh93/ksh/issues/750
and we'll try to find a fix or workaround for it eventually.
--
||    modernish -- harness the shell
||    https://github.com/modernish/modernish
||
||    KornShell lives!
||    https://github.com/ksh93/ksh

Date Sujet#  Auteur
13 May 24 * ksh93: pipelines vs. job control2Christian Weisgerber
19 May 24 `- Re: ksh93: pipelines vs. job control1Martijn Dekker

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal