shell _script() use gnl() instead of readline()
to prevent copy of input to terminal. + here_doc_write_script() for nontty STDIN
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/10/23 18:56:53 by lperrey #+# #+# */
|
||||
/* Updated: 2021/11/26 21:45:22 by lperrey ### ########.fr */
|
||||
/* Updated: 2021/12/18 14:21:47 by lperrey ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -35,4 +35,5 @@ void set_signals_behaviour(void)
|
||||
ft_bzero(&signal_behaviour, sizeof signal_behaviour);
|
||||
signal_behaviour.sa_handler = SIG_IGN;
|
||||
sigaction(SIGQUIT, &signal_behaviour, NULL);
|
||||
sigaction(SIGINT, &signal_behaviour, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user