the need for unbuffered stdin is independent of X11-support
if a command is invalid, skip the whole thing