minishell icon indicating copy to clipboard operation
minishell copied to clipboard

[BUG] Heredoc should execute before parser detects syntax error

Open itislu opened this issue 1 year ago • 1 comments

Example:

cat < Makefile << eof > out1(000) >> out2

Heredoc should first execute, only then parser should report syntax error.

itislu avatar Feb 01 '24 16:02 itislu

I think if syntax error happened we should not going to do heredoc, in my opinion I would say this is not bash feature but bug :p

LeaYeh avatar Feb 01 '24 21:02 LeaYeh