faboussard / 42_minishell

1 stars 0 forks source link

Bug lié aux guillemets : argument non reconnu comme un seul argument mais comme plusieurs ? #43

Closed melobern closed 5 months ago

melobern commented 5 months ago

GREP

>>>  Minishell>$ ls | grep ddd
>>>  Minishell>$ ls | grep "ddd"
grep: : No such file or directory

LS

>>>  Minishell>$ ls libft/
inc  libft.a  Makefile  src
>>>  Minishell>$ ls "libft"
ls: cannot access '': No such file or directory
libft:
inc  libft.a  Makefile  src

==> On voit ici que ls a tenté d'afficher un argument vide avant d'afficher libft.

Bien entendu, ces commandes fonctionnent sous bash :

BASH

BASH:~/$ ls "libft"
inc  libft.a  Makefile  src
BASH:~/$  ls | grep "ddd"
BASH:~/$