[Rpm-maint] [rpm-software-management/rpm] --qyeryformat doesn't support '\0' (Issue #1876)

Florian Festi notifications at github.com
Thu Jan 27 12:32:40 UTC 2022


While you can't use a zero byte as a separator you actually can use any other non printable character

> rpm -q --queryformat "%{NAME}"\`echo -e "\x01"\`"%{VERSION}" rpm | xxd
> 00000000: 7270 6d01 342e 3137 2e30                 rpm.4.17.0

Given that most tags are pretty limited in what they can contain this should work for most use cases.

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

Message ID: <rpm-software-management/rpm/issues/1876/1023159164 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220127/28bf853a/attachment-0001.html>


More information about the Rpm-maint mailing list