inout() initialises its 'token' variable to the value of lexp->token. So when inout() returns upon finding a process subtitution, lexp->token is known to contain either IPROCSYM or OPROCSYM; simple() can check for that instead, making a global flag unnecessary. The fact that inout() calls itself recursively to process multiple redirections does not influence this because the recursive call is done right before returning from the current call. |
||
|---|---|---|
| .. | ||
| cmd | ||
| lib | ||
| Mamfile | ||