I got a problem while trying to simulate a shell.
Is this block of code correct?



Lets see its output: :(



Can someone help me?