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

Giorgos Keramidas keramida at ceid.upatras.gr
Sat Mar 17 15:38:46 CDT 2007


The changeset below uses the typical FreeBSD way of attributing
the change, but I just wanted to ask a question with this patch
as an example:

  What is the typical attribution style people who use Mercurial
  prefer?  Should I leave my ~/.hgrc take over and list my name
  for patches which I receive from others, and list them with a
  'Submitted by:' line as shown below, or should I use 'export',
  edit the patch and list the name of the original submitter as
  'User' in the exported patch header?

On 2007-03-17 22:23, Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:
> # 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