Fix '\%o' for printf from coreutils
commitfbc812a6009ebc91f4870c3572821cb4d68184f8
authorKacper Kornet <draenog@pld-linux.org>
Thu, 31 Oct 2013 11:51:32 +0000 (31 12:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Oct 2013 17:24:33 +0000 (31 10:24 -0700)
tree8b43ba39fbb2b24a730fcc5ace38699b039b6ad8
parent16c159d75af29b1929af0e2f341d26fce4e1d546
Fix '\%o' for printf from coreutils

The printf utility provided by coreutils when interpreting '\%o' format
does not recognize %o as formatting directive. For example
printf '\%o 0 returns \%o and warning: ignoring excess arguments,
starting with ‘0’, which results in failed tests in
t5309-pack-delta-cycles.sh. In most shells the test ends with success as
the printf is a builtin utility.

Fix it by using '\\%o' which is interpreted consistently in all versions
of printf.

Signed-off-by: Kacper Kornet <draenog@pld-linux.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-pack.sh