minor changes to error handling for shell
Authored by: guizyang 1999-05-24
Parent: [r778]
Child: [r780]