Files with spaces and brackets
pmatilai at laiskiainen.org
Fri May 4 10:42:18 UTC 2012
On 04/20/2012 07:26 PM, Jordan Sissel wrote:
> 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:
> "/tmp/test/Funky [\filename].txt"
> The error is: File not found by glob: .../BUILD/tmp/test/Funky
> How do I convince rpmbuild to package this file?
Sorry I've forgotten to answer this...
At least one simple solution (or perhaps more of a workaround for the
quirky quotation) is using wildcards for the "difficult parts", eg:
- Panu -
More information about the Rpm-list