PREV INDEX NEXT

Author: Unknown
Subject: ex
Date: Thursday, 24 Sep 2020, 18:30:23

If we do:

(1)$ a b c >d e f g

Why is the output for argv[5]: 
argv[5] = g  >d

What part of the rule makes >d go to the very end. From my understanding, if we are in the suffix, and read a TEXT, we then try to read as many TEXT and we can and then try to Read as many Redirect as we can? Or, is it because once we see >d, we keep reading the texts e f g as argv's to the left of >d?

I get that the >d is supposed to be with g, but how the grammar get us to output this correctly.
PREV INDEX NEXT