Some utility functions.

That's how I originally had it, but in practice this turns out to be more useful, as you can copy-paste it into your shell and run the cmd. True, it doesn't help debug the shlex.split() part, but that's OK.