en cours de gestion des signaux dans heredoc

This commit is contained in:
hugogogo
2021-11-18 13:29:57 +01:00
parent e715c09de1
commit c11c61ec5e
6 changed files with 43 additions and 9 deletions

View File

@@ -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 |