From 1542433c0bd5d18c7948047d008780a0f7079abc Mon Sep 17 00:00:00 2001 From: Alex Const <90141557+alexconstsh@users.noreply.github.com> Date: Sat, 23 Oct 2021 13:16:29 +0000 Subject: [PATCH] Add entry on disown vs nohup --- SC2039.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/SC2039.md b/SC2039.md index a101bc6..ec2f7bb 100644 --- a/SC2039.md +++ b/SC2039.md @@ -267,6 +267,24 @@ trap my_handler TERM trap my_handler 15 ``` +### disown + +Bash: + +```Bash + +disown % +``` + +POSIX: + +```sh +nohup +``` + +Note that while `nohup` can be used to achieve the same result, their semantics is different. +Also note that `nohup` will, by default, redirect input and output. + ## Exception Depends on what your expected POSIX shell providers would use.