mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Add entry on disown vs nohup
18
SC2039.md
18
SC2039.md
@@ -267,6 +267,24 @@ trap my_handler TERM
|
||||
trap my_handler 15
|
||||
```
|
||||
|
||||
### disown
|
||||
|
||||
Bash:
|
||||
|
||||
```Bash
|
||||
<command>
|
||||
disown %<command>
|
||||
```
|
||||
|
||||
POSIX:
|
||||
|
||||
```sh
|
||||
nohup <command>
|
||||
```
|
||||
|
||||
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.
|
||||
|
Reference in New Issue
Block a user