summaryrefslogtreecommitdiffstats
path: root/bin/sh/sh.1
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-09-04 21:48:33 +0000
committerjilles <jilles@FreeBSD.org>2014-09-04 21:48:33 +0000
commit714c76939dde60292a6712472b3b85c53292e3c1 (patch)
treea0860d129718a6d0d794db98ff77b1da186b38d8 /bin/sh/sh.1
parent9099058799f5cd600b4cccdc36f17fe567fbee2b (diff)
downloadFreeBSD-src-714c76939dde60292a6712472b3b85c53292e3c1.zip
FreeBSD-src-714c76939dde60292a6712472b3b85c53292e3c1.tar.gz
sh: Allow enabling job control without a tty in non-interactive mode.
If no tty is available, 'set -m' is still useful to put jobs in their own process groups.
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r--bin/sh/sh.18
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index 1c3f8fb..4679d45 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -32,7 +32,7 @@
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
.\" $FreeBSD$
.\"
-.Dd January 26, 2014
+.Dd September 4, 2014
.Dt SH 1
.Os
.Sh NAME
@@ -259,6 +259,12 @@ from input when in interactive mode.
Force the shell to behave interactively.
.It Fl m Li monitor
Turn on job control (set automatically when interactive).
+A new process group is created for each pipeline (called a job).
+It is possible to suspend jobs or to have them run in the foreground or
+in the background.
+In a non-interactive shell,
+this option can be set even if no terminal is available
+and is useful to place processes in separate process groups.
.It Fl n Li noexec
If not interactive, read commands but do not
execute them.
OpenPOWER on IntegriCloud