en cours de gestion des signaux dans heredoc
This commit is contained in:
24
README.md
24
README.md
@@ -113,7 +113,29 @@ test
|
||||
hello
|
||||
test
|
||||
```
|
||||
5. chaque nouvelle ligne doit afficher :
|
||||
|
||||
- non pas les characters "> "
|
||||
|
||||
- mais le contenu de la variable PS2 (qui par defaut est la chaine de characater "> ")
|
||||
|
||||
- (au passage, les characaters "$ " affichés a la fin de chaque prompt devraient etre ceux de la variable PS1)
|
||||
|
||||
- [infos ici](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_05_03)
|
||||
|
||||
|
||||
## schema d'execution :
|
||||
```text
|
||||
_________________________________________________
|
||||
|LOOP: shell_loop() |
|
||||
| signal(SIGINT, handler) |
|
||||
| mode interactif -> readline return line_input |
|
||||
| signal(SIGINT, ignore) |
|
||||
| lexing |
|
||||
| parsing |
|
||||
| execution |
|
||||
|_________________________________________________|
|
||||
```
|
||||
|
||||
|
||||
## understanding some things :
|
||||
@@ -125,6 +147,8 @@ test
|
||||
- [signal in a child process](https://stackoverflow.com/questions/55190460/using-signals-in-a-child-process)
|
||||
- [send signal to process and childs](https://linuxconfig.org/how-to-propagate-a-signal-to-child-processes-from-a-bash-script)
|
||||
- commande utile pour tester les process parents et enfants : while true ; do ps -o pid,pgid,cmd -C bash ; sleep 0.1 ; echo "\n" ; done
|
||||
- [exit code status](https://tldp.org/LDP/abs/html/exitcodes.html)
|
||||
|
||||
|
||||
```text
|
||||
| BASH | MINISHELL |
|
||||
|
||||
Reference in New Issue
Block a user