shell.c trinary state switch improved