RenataKaras / minishell

0 stars 0 forks source link

catting heredoc to the stdout doesn't work #7

Closed RenataKaras closed 1 month ago

RenataKaras commented 1 month ago

cat << EOF only opens a heredoc but after the EOF it doesn't print it out on the STDOUT

RenataKaras commented 1 month ago

I think this is somehow connected to this as well and it has to do with the fact that when we call heredoc it doesn't process anything else other than heredoc - another example is << EOF | wc > testout It doesn't create testout or does a pipe

saraxplorer commented 1 month ago

A premature return was causing it.

RenataKaras commented 1 month ago

<< EOF | wc > testout doesn't work

RenataKaras commented 1 month ago

<< EOF | wc > testout doesn't work

it now creates testout file but when I cat it I get 0 0 0, no matter what I type in the heredoc. Let's see what Jan says about it - are we supposed to have this working or not.