Minor changes to shell.c on POSIX
-Frank Dye