bashrc: g: check for valid input in 2 argument form