Breakdown of Grzybiarz zje wszystko z polany, byleby uniknąć zatrucia.
zjeść
to eat (perfective)
wszystko
everything
z
from (+ Genitive)
uniknąć
to avoid (perfective)
Questions & Answers about Grzybiarz zje wszystko z polany, byleby uniknąć zatrucia.
Why is byleby followed by the infinitive uniknąć instead of a conjugated verb?
Because the subject of both parts of the sentence is the exact same (the mushroom picker). When the subject doesn't change across the clauses, byleby (and byle) takes an infinitive. If the subjects were different, you would need a conjugated verb, usually in the past tense (for example, if you wanted to say 'provided that YOU avoid', it would be bylebyś uniknął).
Could I use byle instead of byleby here?
Yes, they are completely interchangeable in this sentence. Byleby is just a slightly more emphatic version of byle. Both translate to 'provided that' or 'as long as' and follow the exact same grammatical rules.
What case is zatrucia and why?
It is in the genitive case. The verb uniknąć (to avoid) is one of those Polish verbs that strictly require their object to be in the genitive, rather than the more standard accusative. The dictionary form is the neuter noun zatrucie.
Why is wszystko translated as 'anything' rather than 'everything'?
While wszystko literally means 'everything', Polish often uses it where English speakers naturally say 'anything' to mean 'any possible thing in this group'. You could use cokolwiek (anything/whatever), but wszystko sounds very natural here to emphasize that he is willing to eat the entire range of available options.