-
-> Corriger le heredoc, ou les enfants, ou les deux.
-
```
mbernard@z4r9p5:~$ ls | cd
mbernard@z4r9p5:~$
mbernard@z4r9p5:~$ cd | ls
CLionProjects Desktop Documents Downloads goinfre Music Pictures Public sgoinfre Templates Videos
```
EXEC : …
-
## Do we need handle it ?
```
yusengok@z3r8p1:~/Documents/CommonCore/1-GitHub/42-Minishell$ cat ~
cat: /home/yusengok: Is a directory
```
```
minishell >>> cat ~
cat: '~': No such file or dir…
-
```
yusengok@z3r8p1:~/Documents/CommonCore/1-GitHub/42-Minishell$ ls | '
> s
> s2
yusengok@z3r8p1:~/Documents/CommonCore/1-GitHub/42-Minishell$ echo $?
2
```
```
minishell >>> ls | s
minishe…
-
```bash
yusengok@z3r8p1:~/Documents/CommonCore/1-GitHub/42-Minishell$ $USERa
> '$USER'
> "$USER"
> s
yusengok
'yusengok'
"yusengok"
```
```bash
minishell >>> $USERa
> '$USER'
> "$USE…
-
```
/workspaces/42-minishell ❯ ""
minishell: /vscode/vscode-server/bin/linux-x64/e170252f762678dec6ca2cc69aba1570769a5d39/bin/remote-cli/: Permission denied
```
-
When **_|_** is just after **_>_** (without spaces), it is ignored.
```
$ >| outfile pwd
$ echo $?
0
$ ls
ft_minishell lib Makefile minishell outfile README.md
$ cat outfile
/home/yuse…
-
It works but Valgrind Invalid write & invalid read.
```bash
#bash
$ echo "'$USER'"
'yusengok'
```
```bash
minishell >>> echo "'$USER'"
==2525878== Invalid write of size 1
==2525878== …
-
```
char **split_export_arg(char *arg)
{
char **split;
int len1;
int len2;
len1 = 0;
len2 = get_length(&len1, arg);
split = ft_calloc(3, sizeof(char *)); /////-----------> Leak in ca…
-
```
👤 user@267e80e9f783
/workspaces/42-minishell ❯ /bin/echo $"42$"
AddressSanitizer:DEADLYSIGNAL
=================================================================
==38664==ERROR: AddressSanitize…