bug with ls --
Opened this issue · 0 comments
hectorsvill commented
if (**av == '-')
{
flagcheck = checkflags(*av);
if (flagcheck == 1)
ent.flags = setfield(*av);
else
{
if (flagcheck != '1')
{
ft_printf("ft_ls: illegal option -- %c\n", flagcheck);
ft_putendl("usage: ft_ls [-lRart] [file ...]");
exit(1);
}
}
When using ls -- the current directory is printed.