test-subrepo-paths: use printf instead of echo
authorMartin Geisler <mg@lazybytes.net>
Thu, 19 Aug 2010 16:34:12 +0200
changeset 11964 79bd860b8eb7
parent 11963 7c3aa579d98a
child 11966 22f1994fb669
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.
tests/test-subrepo-paths.t
--- 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