[Rpm-maint] [rpm-software-management/rpm] Do not expand macro in a comment. (#123)
MyungJoo Ham
notifications at github.com
Thu Jan 12 10:56:07 UTC 2017
Some escaping characters allowing to do seems reasonable:
```
cat << EOF >> fooscript
\#!%{_bindir}/python
EOF
```
or
```
%define SHARP #
cat << EOF >> fooscript
%{sharp}!%{_bindir}/python
EOF
```
However, if people has been using what @pmatilai has said, it is appropriate not to break the old working codes.
Then, what about emitting ERRORS when we meet multiline (\n in macro) macro inside comments?
If that's fine with you, I'm willing to resubmit a commit.
E.g.,
```
%define a blah
#%a
```
does not give an error.
However,
```
%define a make \
-DABC=abc
#%make
```
gives an error.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/123#issuecomment-272134248
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170112/7df7db6e/attachment.html>
More information about the Rpm-maint
mailing list