shell.c some globals removed outred and inred