Use printf(1) instead of using bash-specific shell code.
authorGiorgos Keramidas <keramida@ceid.upatras.gr>
Sat, 30 Dec 2006 21:33:45 +0200
changeset 4292 b90e323a4781
parent 4291 35b2e02367a5
child 4293 b0140ead7f70
Use printf(1) instead of using bash-specific shell code. Submitted by: Benoit Boissinot <bboissin@gmail.com>
tests/test-issue352
--- a/tests/test-issue352
+++ b/tests/test-issue352
@@ -1,10 +1,10 @@
-#!/bin/bash
+#!/bin/sh
 # http://www.selenic.com/mercurial/bts/issue352
 
 hg init foo
 cd foo
 
-A=`echo -e -n 'he\rllo'`
+A=`printf 'he\rllo'`
 
 echo foo > "$A"
 hg add