On Fri, Sep 7, 2018 at 11:54 AM xiaofeng <wasphin(a)gmail.com> wrote:
On Fri, Sep 7, 2018 at 11:51 AM Jason Tibbitts <tibbs(a)math.uh.edu> wrote:
> >>>>> "x" == xiaofeng <wasphin(a)gmail.com> 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(a)lists.fedoraproject.org
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(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn