what is the roll of shell in command processing?
If your looking for the actual inner workings of how a "shell" operates I can't help you.
A Shell takes , "stdin" and processes it. stdin is standard input ie... keyboard or mouse and processes it to either stdout or stderror. standard output (what you see on the screen))