Re: [PATCH 2/2] t7508-status: test all modes with color
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Dec 8, 2009, 11:10 UTC
- Message-ID
- <hflc82$sf8$1@ger.gmane.org>
- In-Reply-To
- <39211ecec866882503d1188d359e1183341faeb1.1260266027.git.git@drmicha.warpmail.net>
Michael J Gruber wrote:
Show 8 quoted lines
> +decrypt_color () {
> + sed \
> + -e 's/.\[1m/<WHITE>/g' \
> + -e 's/.\[31m/<RED>/g' \
> + -e 's/.\[32m/<GREEN>/g' \
> + -e 's/.\[34m/<BLUE>/g' \
> + -e 's/.\[m/<RESET>/g'
> +}Shouldn't this be better in test-lib.sh, or some common lib (lib-color.sh or color-lib.sh; we are unfortunately a bit inconsistent in naming here)?
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git