More consistent handling of $ for LearnDB commands.