shell.c code clarification