]> git.saurik.com Git - apt.git/commit
test: Use printf "%b\n" instead of echo for strings with '\'
authorJulian Andres Klode <jak@debian.org>
Tue, 23 Aug 2016 23:40:43 +0000 (01:40 +0200)
committerJulian Andres Klode <jak@debian.org>
Fri, 26 Aug 2016 20:17:55 +0000 (22:17 +0200)
commit76325a660e09d3af503c292ae12c9de2830994e5
tree199b37cd126490b2ca2d15e9d91feb509eee9067
parentc5306b16a34a6f82cb53668287267e4de3065ea1
test: Use printf "%b\n" instead of echo for strings with '\'

Use of echo with special characters is not portable. On a normal
POSIX system, the behavior with backslash escaped strings is
implementation-defined. On an XSI-conformant system, they must
be interpreted.

A way out is the printf command - printf "%b" specifies that
the following argument is to be printed with backslash escapes
interpreted.

Gbp-Dch: ignore
test/integration/framework
test/integration/test-external-dependency-solver-protocol