Re: How to properly escape weird characters in paths to have a valid filelist?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29. 06. 21 13:32, Miro Hrončok wrote:
While at it, I've also tried to figure out how to escape a % symbol in path. Suppose the path is literally:

/usr/share/data/%version

I've tried the following options with no luck:

"/usr/share/data/%version"
/usr/share/data/%%version
/usr/share/data/%%%version
/usr/share/data/%%%%version
/usr/share/data/%%%%%version ...

My experiments show that I need to put 8 % signs to the filelist to have a file listed with one % sign in the path.

However, that might very well not be a stable assumption:

  %install
  touch '%{buildroot}percent%%version'

  %files
  /percent%%%%%%%%version

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list




[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux