inkaonkala / Bananapeel

A little shell to be born ...
0 stars 0 forks source link

export | wc -l #21

Open jqbremser opened 2 months ago

jqbremser commented 2 months ago

export doesnt work with pipes it seems. I tried with env | wc -l and it works as expected.

(PS I AM USING this issues page of github for the first time, maybe this will be useful!)

jqbremser commented 2 months ago

🍌banana_peel:export | grep hello Bananas! Can't find your command :( 🍌banana_peel:export | wc -l
1 🍌banana_peel:export | cat
Bananas! Can't find your command :(

some examples. Probably all the same issue, but we cant be sure

jqbremser commented 2 months ago

env | grep make weird outputs. I think it just puts the ENV output

inkaonkala commented 2 months ago

exort | wc is not working because env's are a linked list. So it is only counting the first "node" == the first line, from env's That gives the linecount 1, and wordcount 37

inkaonkala commented 2 months ago

We could test, that if we use one loooooong line in envp instead of envp, would it fix the issue. This same happens now with export | cat, because the export can not handle the (i think)