Mercurial > hg-stable
changeset 11964:79bd860b8eb7
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.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 19 Aug 2010 16:34:12 +0200 |
parents | 7c3aa579d98a |
children | 22f1994fb669 |
files | tests/test-subrepo-paths.t |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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