[PATCH] Use printf(1) instead of using bash-specific shell code

Giorgos Keramidas keramida at ceid.upatras.gr
Sat Mar 17 15:23:48 CDT 2007


# HG changeset patch
# User Giorgos Keramidas <keramida at ceid.upatras.gr>
# Date 1167507225 -7200
# Node ID 9b36d9e4f429b741b445fb6a97bbad37fcd6c92a
# Parent  641c3bb47e839842f05e28a86473efc6555a49ac
Use printf(1) instead of using bash-specific shell code.

Submitted by:  Benoit Boissinot <bboissin at gmail.com>

diff --git a/tests/test-issue352 b/tests/test-issue352
--- a/tests/test-issue352
+++ b/tests/test-issue352
@@ -1,10 +1,10 @@
-#!/usr/bin/env 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 > "hell
 o"


More information about the Mercurial-devel mailing list