Skip to content

Commit d35a42a

Browse files
committed
Merge branch 'jk/duplicate-objects-in-packs'
Test fixup to a topic recently graduated. * jk/duplicate-objects-in-packs: Fix '\%o' for printf from coreutils
2 parents 59c21d1 + fbc812a commit d35a42a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/lib-pack.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
# Print the big-endian 4-byte octal representation of $1
1313
uint32_octal () {
1414
n=$1
15-
printf '\%o' $(($n / 16777216)); n=$((n % 16777216))
16-
printf '\%o' $(($n / 65536)); n=$((n % 65536))
17-
printf '\%o' $(($n / 256)); n=$((n % 256))
18-
printf '\%o' $(($n ));
15+
printf '\\%o' $(($n / 16777216)); n=$((n % 16777216))
16+
printf '\\%o' $(($n / 65536)); n=$((n % 65536))
17+
printf '\\%o' $(($n / 256)); n=$((n % 256))
18+
printf '\\%o' $(($n ));
1919
}
2020

2121
# Print the big-endian 4-byte binary representation of $1

0 commit comments

Comments
 (0)