shell.c globals put into a proper structure