-
ls | cat > cat.txt
↓
本家ではcat.txtがなかったら生成されるけど、テキストファイルが生成されない
-
![image](https://github.com/gysiang/minishell/assets/124663345/be0049c7-16a7-4217-ac5c-30999e074379)
-
minishell:$ ./minishell
minishell:$ exit 255
exit minishell
(invalid free here)
minishell:$ echo $?
65280
==2253641== Invalid free() / delete / delete[] / realloc()
==2253641== at 0x48…
-
```bash
┌─[ilkayyanar] [SHLVL 2]
└─[~/travail/repo_github/42Cursus/42-minishell] [0]-❥ je vais etre
> free
> quel
> dommahe
> lol
je vais etre
free
quel
dommahe
minishell(88944,0x203d0bac0…
-
```
➜ 42_minishell.c git:(builtins) ✗ bash
mbernard@z3r8p3:~/sgoinfre/42_minishell.c$ c
0 0 0
mbernard@z3r8p3:~/sgoinfre/42_minishell.c$ exit
exit
➜ 42_minishell.c git:(buil…
-
![image](https://github.com/gysiang/minishell/assets/124663345/54d68868-fb43-448a-b08e-f0325a5daa86)
@gysiang
-
Set the $PATH to a multiple directory value (directory1:directory2) and ensure that directories are
checked in order from left to right
cd
pwd..
-
Usage of calloc instead of ft_calloc who is protected by garbagecollector
Valgrind output:
```bash
==590348==
==590348== HEAP SUMMARY:
==590348== in use at exit: 208,711 bytes in 244 block…
RPDJF updated
6 months ago
-
Affiche le premier message et met la sortie d'erreur à 131.
-> photo du code envoyée dans Discord.
```
mbernard@z3r8p3:~/sgoinfre/42_minishell.c$ cat
^\Quit (core dumped)
mbernard@z3r8p3:~/sg…
-
```
✅ minishell ➜ cat file_does_nocat file_does_not_exist && /bin/echo 2
cat: file_does_not_exist: No such file or directory
✅ minishell ➜
```