fix warning in shell.c