[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: Re: [PATCH 03/21] git-version-gen: remove CR as well
From: |
KO Myung-Hun |
Subject: |
Re: Fwd: Re: [PATCH 03/21] git-version-gen: remove CR as well |
Date: |
Tue, 02 Dec 2014 14:55:20 +0900 |
User-agent: |
Mozilla/5.0 (OS/2; Warp 4.5; rv:10.0.6esrpre) Gecko/20120715 Firefox/10.0.6esrpre SeaMonkey/2.7.2 |
Hi/2.
Paul Eggert wrote:
> Sorry, I forgot to CC: this one to you.
>
>
> -------- Forwarded Message --------
> Subject: Re: [PATCH 03/21] git-version-gen: remove CR as well
> Date: Sun, 30 Nov 2014 08:41:03 -0800
> From: Paul Eggert <address@hidden>
> Organization: UCLA Computer Science Department
> To: address@hidden
>
> KO Myung-Hun wrote:
>> +echo "$v" | tr -d "$cr$nl"
>
> How about this instead?
>
> printf '%s' "$v"
>
> This avoids the need for cr and for tr, which is simpler and a bit
> faster. The
> script is already using printf so this shouldn't be a portability issue.
>
Yes, it works. Thanks.
--
KO Myung-Hun
Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
0001-git-version-gen-do-not-print-new-line-characters.patch
Description: Text document