On Fri, Sep 7, 2018 at 11:54 AM xiaofeng <wasphin@xxxxxxxxx> wrote:
On Fri, Sep 7, 2018 at 11:51 AM Jason Tibbitts <tibbs@xxxxxxxxxxx> wrote:>>>>> "x" == xiaofeng <wasphin@xxxxxxxxx> writes:
x> Hi, I need to use `date +%Y-%m-%d %H:%M:%S` in the `post` part, but
x> the %S turn out to be %SOURCE, how to escape it?
Double the percent signs. RPM will turn '%%' into '%'.I have tried that, but it seems not work for me.
The problem turn out to be that, I use the result of `date +%Y-%m-%d %H:%M:%S` as an argument of another program,
which ignore the `%H:%M:%S` part(because the space).
- J<
Thanks.
--xiaofeng
--
gpg key fingerprint:
2048R/5E63005B
C84F 671F 70B7 7330 4726 5EC8 02BC CBA2 5E63 005B
--
trans-zh_cn mailing list
trans-zh_cn@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn
xiaofeng
--
gpg key fingerprint:
2048R/5E63005B
C84F 671F 70B7 7330 4726 5EC8 02BC CBA2 5E63 005B
--
trans-zh_cn mailing list
trans-zh_cn@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn
--
gpg key fingerprint:
2048R/5E63005B
C84F 671F 70B7 7330 4726 5EC8 02BC CBA2 5E63 005B
--
trans-zh_cn mailing list
trans-zh_cn@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn
_______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx