mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
notes: add signals section (WIP - needs to be investigated further)
This commit is contained in:
parent
b450220720
commit
0db1867a55
1 changed files with 13 additions and 0 deletions
13
NOTES.md
13
NOTES.md
|
|
@ -530,6 +530,19 @@ usage, generally invalid options or missing arguments.
|
||||||
|
|
||||||
The exit status of the last command is available in the special parameter $?.
|
The exit status of the last command is available in the special parameter $?.
|
||||||
|
|
||||||
|
#### Signals
|
||||||
|
cf. 3.7.6 Signals
|
||||||
|
|
||||||
|
When Bash is interactive, it ignores 'SIGTERM' (so that 'kill 0' does not kill
|
||||||
|
an interactive shell), and 'SIGINT' is caught and handled. When Bash receives a
|
||||||
|
'SIGINT', it breaks out of any executing loops. In all cases, Bash ignores
|
||||||
|
'SIGQUIT'. Bash ignores 'SIGTTIN', 'SIGTTOU', and 'SIGTSTP'.
|
||||||
|
|
||||||
|
NOTE: The behaviour on when ^C is printed seems strange, investigate further
|
||||||
|
once we implement this
|
||||||
|
|
||||||
|
TODO: investigate this further, this seems very complicated
|
||||||
|
|
||||||
## Definitions
|
## Definitions
|
||||||
cf. [Bash Reference Manual](https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Definitions)
|
cf. [Bash Reference Manual](https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Definitions)
|
||||||
cf. 2 Definitions
|
cf. 2 Definitions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue