From my understanding, parser generators accept as input some form of context-free grammar description. The context-sensitive features are handled during semantic rather than syntactic analysis (please correct me if this is wrong).
Since shell languages inherently have a lot of context-sensitive features, is it worthwhile using a parser generator? If not, what techniques could be used for a precise definition and parsing of a shell language?
In conclusion: my understanding of what context-sensitive grammar means was wrong.