test-subrepo-paths: use printf instead of echo
Different shells have different opinions on how to backslashes must be
escaped for echo, but printf is consistent across zsh, dash, bash,
tcsh, and csh.
--- a/tests/test-subrepo-paths.t Wed Aug 18 19:37:23 2010 +0200
+++ b/tests/test-subrepo-paths.t Thu Aug 19 16:34:12 2010 +0200
@@ -14,7 +14,7 @@
hg debugsub with remapping
$ echo '[subpaths]' > .hg/hgrc
- $ echo 'http://example.net/lib(.*) = C:\libs\\1-lib\' >> .hg/hgrc
+ $ printf 'http://example.net/lib(.*) = C:\\libs\\\\1-lib\\\n' >> .hg/hgrc
$ hg debugsub
path sub