No mention of ';' to have multiple command on one line.
Example:
sed '10{p;q;}' myfile.txtExample:
sed '10{p;q;}' myfile.txtPS: May I humbly point out that the command you provided will actually print up to line 10 and then a duplicate line. Like I said, unexpected (even though it seems logical). :)