<blockquote>
<p>The constructive solution to the problem would be supporting spec #-comments at arbitrary positions, just like the shell does.</p>
</blockquote>
<p>Supporting spec #-comments at arbitrary positions can potentially cause some problems. That is why I looked  into spec files and search for occurrences of #. There are several types of interesting lines:</p>
<p>1/ <strong>#</strong> used in define (in quotes or before backslash, ...)</p>
<pre><code>   %define coolkey_module "CoolKey PKCS #11 Module"
   %global auto_register_macro_post() # create it if it doesn't already exist \
</code></pre>
<p>2/ <strong>#</strong> used in a script that does not denote a comment</p>
<pre><code>sed -i -e '/^#!/ c #!%{__perl}' bin/podspell
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
</code></pre>
<p>3/ <strong>#</strong> used in a changelog:</p>
<pre><code>Ticket #321 - krbExtraData is being null modified and replicated on each ssh login
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/829?email_source=notifications&email_token=ADLPZU2GV6MSYC4HGTFGBG3QI5TETA5CNFSM4ITPUL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6KPPRY#issuecomment-529856455">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUZSD5XDJTTBFXX3I3DQI5TETANCNFSM4ITPUL2Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU33OAEM2URIKTBLDPLQI5TETA5CNFSM4ITPUL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6KPPRY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/issues/829?email_source=notifications\u0026email_token=ADLPZU2GV6MSYC4HGTFGBG3QI5TETA5CNFSM4ITPUL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6KPPRY#issuecomment-529856455",
"url": "https://github.com/rpm-software-management/rpm/issues/829?email_source=notifications\u0026email_token=ADLPZU2GV6MSYC4HGTFGBG3QI5TETA5CNFSM4ITPUL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6KPPRY#issuecomment-529856455",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>