Missing a '$' prefix?

I'm not sure undef is a good default, since you'd get "> " or something in the command (maybe even "> undef").  Does it even need to be a parameter, could it be generated from `${title}`?