Re: [RFC] war on echo in scripts
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 9, 2010, 04:46 UTC
- Message-ID
- <7vocehmfe9.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20100709024633.GA13739@dert.cs.uchicago.edu>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 15 quoted lines
> Hmm, maybe something like this would be easier.
>
> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
> ---
> 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...