diff options
| author | Dominik Kaiser | 2024-06-25 15:06:46 +0200 |
|---|---|---|
| committer | GitHub | 2024-06-25 15:06:46 +0200 |
| commit | 031685832d8267acc2fa46ea9732b8e95eb34463 (patch) | |
| tree | d2c0ec50c1be91e17b3924a2abc058575893c89e /src/repl.c | |
| parent | 97cca528658e5b811a56600b7c0b4f9c11bf83fc (diff) | |
| download | minishell-031685832d8267acc2fa46ea9732b8e95eb34463.tar.gz minishell-031685832d8267acc2fa46ea9732b8e95eb34463.zip | |
Add history
Diffstat (limited to 'src/repl.c')
| -rw-r--r-- | src/repl.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -6,7 +6,7 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/24 16:07:04 by dkaiser #+# #+# */ -/* Updated: 2024/06/25 13:50:19 by dkaiser ### ########.fr */ +/* Updated: 2024/06/25 15:03:00 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -21,6 +21,7 @@ void repl(const char *prompt) input = readline(prompt); if (input == NULL) return ; + add_history(input); free(input); } } |
