[OE-core] [PATCH] bitbake wrapper: Make sure grep runs without colorized output

Phil Blundell philb at gnu.org
Wed Sep 21 10:34:57 UTC 2011


On Wed, 2011-09-21 at 12:31 +0200, Koen Kooi wrote:
> -    PSEUDOBINDIR=`bitbake -e | grep STAGING_BINDIR_NATIVE=\" | cut -d '=' -f2 | cut -d '"' -f2`
> +    PSEUDOBINDIR=`bitbake -e | grep --color=never STAGING_BINDIR_NATIVE=\" | cut -d '=' -f2 | cut -d '"' -f2`
>      ret=$?

That's a GNU extension and won't work on all greps.  How about just
unsetting GREP_OPTIONS, or alternatively replacing that whole pipeline
with awk?

p.






More information about the Openembedded-core mailing list