##// END OF EJS Templates
Use printf(1) instead of using bash-specific shell code....
Giorgos Keramidas -
r4292:b90e323a default
parent child Browse files
Show More
@@ -1,22 +1,22
1 #!/bin/bash
1 #!/bin/sh
2 # http://www.selenic.com/mercurial/bts/issue352
2 # http://www.selenic.com/mercurial/bts/issue352
3
3
4 hg init foo
4 hg init foo
5 cd foo
5 cd foo
6
6
7 A=`echo -e -n 'he\rllo'`
7 A=`printf 'he\rllo'`
8
8
9 echo foo > "$A"
9 echo foo > "$A"
10 hg add
10 hg add
11 hg ci -A -m m
11 hg ci -A -m m
12 rm "$A"
12 rm "$A"
13
13
14 echo foo > "hell
14 echo foo > "hell
15 o"
15 o"
16 hg add
16 hg add
17 hg ci -A -m m
17 hg ci -A -m m
18
18
19 echo foo > "$A"
19 echo foo > "$A"
20 hg debugwalk
20 hg debugwalk
21
21
22 exit 0
22 exit 0
General Comments 0
You need to be logged in to leave comments. Login now