if cmdline contain \n, then it is safer to use `\A` instead of `^`