[Rpm-maint] [rpm-software-management/rpm] %{sources} / %{patches} in .spec file should expand into a list of file paths contained in single quotes ('') (#1445)

terminus-brut notifications at github.com
Wed Nov 18 16:53:10 UTC 2020

Imagine the the following usage:
for source in %{sources}
    echo ${source}

If there are spaces either in the file name or somewhere within the upper directory names, the command inside the loop will be executed for each part of the name.
Therefore %{sources} and likewise %{patches} should expand into a list of values where each value is contained in single quotes.

I noticed that the situation when a file name contains a single quote is already handled by surrounding the file name in quotes and escaping the inner quote.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201118/bf9df96e/attachment.html>

More information about the Rpm-maint mailing list