move subsection on tty below job control one, pull all stuff into it
This commit is contained in:
24
mksh.1
24
mksh.1
@ -1,4 +1,4 @@
|
|||||||
.\" $MirOS: src/bin/mksh/mksh.1,v 1.454 2018/04/27 17:10:39 tg Exp $
|
.\" $MirOS: src/bin/mksh/mksh.1,v 1.455 2018/04/27 17:20:39 tg Exp $
|
||||||
.\" $OpenBSD: ksh.1,v 1.160 2015/07/04 13:27:04 feinerer Exp $
|
.\" $OpenBSD: ksh.1,v 1.160 2015/07/04 13:27:04 feinerer Exp $
|
||||||
.\"-
|
.\"-
|
||||||
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
|
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
|
||||||
@ -5199,15 +5199,6 @@ option differs: the search path is not affected in
|
|||||||
.Ic whence ,
|
.Ic whence ,
|
||||||
but the search is restricted to the path.
|
but the search is restricted to the path.
|
||||||
.El
|
.El
|
||||||
.Ss Terminal state
|
|
||||||
The state of the controlling terminal can be modified by a command executed
|
|
||||||
in the shell, whether or not job control is enabled.
|
|
||||||
The modified terminal state is not retained when the command exits
|
|
||||||
unsuccessfully (i.e.\& with a non-zero status), or when job control is
|
|
||||||
enabled and the command had been momentarily stopped (then restarted).
|
|
||||||
In interactive mode, when line editing is enabled, the terminal state is
|
|
||||||
saved before being reconfigured by the shell for the line editor, then
|
|
||||||
restored before running a command.
|
|
||||||
.Ss Job control
|
.Ss Job control
|
||||||
Job control refers to the shell's ability to monitor and control jobs which
|
Job control refers to the shell's ability to monitor and control jobs which
|
||||||
are processes or groups of processes created for commands or pipelines.
|
are processes or groups of processes created for commands or pipelines.
|
||||||
@ -5228,8 +5219,6 @@ foreground or background using the commands
|
|||||||
.Ic fg
|
.Ic fg
|
||||||
and
|
and
|
||||||
.Ic bg .
|
.Ic bg .
|
||||||
The state of the terminal is saved or restored when a job initially
|
|
||||||
started in the foreground is stopped or restarted, respectively.
|
|
||||||
.Pp
|
.Pp
|
||||||
Note that only commands that create processes (e.g. asynchronous commands,
|
Note that only commands that create processes (e.g. asynchronous commands,
|
||||||
subshell commands and non-built-in, non-function commands) can be stopped;
|
subshell commands and non-built-in, non-function commands) can be stopped;
|
||||||
@ -5343,6 +5332,17 @@ If another attempt
|
|||||||
is immediately made to exit the shell, the running jobs are sent a
|
is immediately made to exit the shell, the running jobs are sent a
|
||||||
.Dv SIGHUP
|
.Dv SIGHUP
|
||||||
signal and the shell exits.
|
signal and the shell exits.
|
||||||
|
.Ss Terminal state
|
||||||
|
The state of the controlling terminal can be modified by a command
|
||||||
|
executed in the foreground, whether or not job control is enabled, but
|
||||||
|
the modified terminal state is only kept past the job's lifetime and used
|
||||||
|
for later command invocations if the command exits successfully (i.e.\&
|
||||||
|
with an exit status of 0).
|
||||||
|
When such a job is momentarily stopped or restarted, the terminal state
|
||||||
|
is saved and restored, respectively, but it will not be kept afterwards.
|
||||||
|
In interactive mode, when line editing is enabled, the terminal state is
|
||||||
|
saved before being reconfigured by the shell for the line editor, then
|
||||||
|
restored before running a command.
|
||||||
.Ss POSIX mode
|
.Ss POSIX mode
|
||||||
Entering
|
Entering
|
||||||
.Ic set Fl o Ic posix
|
.Ic set Fl o Ic posix
|
||||||
|
Reference in New Issue
Block a user