Files with spaces and brackets

Jordan Sissel jls at semicomplete.com
Fri Apr 20 16:26:50 UTC 2012


Howdy folks!

So I have a file named, without quotes,  "/tmp/test/Funky [filename].txt"

The problem here is two fold. Spaces and '['. Spaces are solved by
double-quoting the filename in the %files section, and normally the '[' can
be escaped by doing [\[]. However, when combined, this doesn't work:

%files
%defattr(-,root,root,-)
"/tmp/test/Funky [\[]filename].txt"

The error is:    File not found by glob: .../BUILD/tmp/test/Funky
[\[]filename].txt

How do I convince rpmbuild to package this file?

-Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20120420/f119c6b6/attachment.html>


More information about the Rpm-list mailing list