Subject: Re: [RFC] war on echo in scripts

From: Junio C Hamano <[email-masked]>
Date: Thu, 08 Jul 2010 21:46:06 -0700

Jonathan Nieder <[email-masked]> writes:

> Hmm, maybe something like this would be easier.
>
> Signed-off-by: Jonathan Nieder <[email-masked]>
> ---
> diff --git a/git-sh-setup.sh b/git-sh-setup.sh
> index 6131670..b38b40b 100644
> --- a/git-sh-setup.sh
> +++ b/git-sh-setup.sh
> @@ -39,6 +39,10 @@ git_broken_path_fix () {
>  
>  # @@BROKEN_PATH_FIX@@
>  
> +echo() {
> +	printf '%s\n' "$*"
> +}

As long as we don't have "echo -n" and "echo -e", this should
work, but...