use bash shell to handle a menu selection with up/down key