When you just enter <space><enter>, this happens:
ms>
DEBUG Inputed line:
ERORR Wrong redirect syntax!
==41635== Invalid read of size 4
==41635== at 0x401E30: expand (expand.c:119)
==41635== by 0x402DD7: ft_lstiter (list_utils.c:118)
==41635== by 0x402AAE: lexer (lexer.c:180)
==41635== by 0x40322D: shell_loop (loop.c:31)
==41635== by 0x403346: main (main.c:24)
==41635== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==41635==
==41635==
==41635== Process terminating with default action of signal 11 (SIGSEGV)
==41635== Access not within mapped region at address 0x0
==41635== at 0x401E30: expand (expand.c:119)
==41635== by 0x402DD7: ft_lstiter (list_utils.c:118)
==41635== by 0x402AAE: lexer (lexer.c:180)
==41635== by 0x40322D: shell_loop (loop.c:31)
==41635== by 0x403346: main (main.c:24)
When you just enter
<space>
<enter>
, this happens: ms> DEBUG Inputed line:ERORR Wrong redirect syntax! ==41635== Invalid read of size 4 ==41635== at 0x401E30: expand (expand.c:119) ==41635== by 0x402DD7: ft_lstiter (list_utils.c:118) ==41635== by 0x402AAE: lexer (lexer.c:180) ==41635== by 0x40322D: shell_loop (loop.c:31) ==41635== by 0x403346: main (main.c:24) ==41635== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==41635== ==41635== ==41635== Process terminating with default action of signal 11 (SIGSEGV) ==41635== Access not within mapped region at address 0x0 ==41635== at 0x401E30: expand (expand.c:119) ==41635== by 0x402DD7: ft_lstiter (list_utils.c:118) ==41635== by 0x402AAE: lexer (lexer.c:180) ==41635== by 0x40322D: shell_loop (loop.c:31) ==41635== by 0x403346: main (main.c:24)