[Rpm-maint] [rpm-software-management/rpm] Shell-like escaping support in %files (PR #1903)

Michal Domonkos notifications at github.com
Wed Mar 16 15:25:54 UTC 2022


@dmnks commented on this pull request.



> @@ -665,6 +665,20 @@ void rpmUnescape(char *s)
     *p = '\0';
 }
 
+void rpmUnescapeQuotes(char *s)
+{
+    char *p, *q;
+    int esc = 0;
+    p = q = s;
+    while (*q != '\0') {
+	*p = *q++;
+	esc = (*p == '\\') && !esc && *q == '"';

One of the goals of a "draft" PR is to "get early feedback", so I guess that's to be expected, OTOH this really is just a WIP.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1903#discussion_r828143967
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/1903/review/911830163 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220316/d9ff7c57/attachment-0001.html>


More information about the Rpm-maint mailing list