There is a bug in the command.
execute @p ^^^10 kill @p
When I type the command "@p" in the command block, I get "Syntax error: "@p": at "execute >>@p<< ^^^10 kill" is invalid" in the execution result. I don't think there is any syntax error, but is this a bug?
This sentence is translated using a translation site, so I apologize if it sounds funny!