[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dim-tools
Subject:    [PATCH] dim: replace egrep with grep -E
From:       daniel () ffwll ! ch (Daniel Vetter)
Date:       2018-01-30 6:43:06
Message-ID: 20180130064306.GL2759 () phenom ! ffwll ! local
[Download RAW message or body]

On Mon, Jan 29, 2018 at 10:39:11AM -0800, Lucas De Marchi wrote:
> Fix shellcheck:
> 
> In dim line 1489:
> echo "$diff_result" | egrep '^[+-]' | egrep -v '^[+-]{3}'
> ^-- SC2196: egrep is non-standard and deprecated. Use grep -E instead.
> ^-- SC2196: egrep is non-standard and deprecated. Use grep -E instead.
> 
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>

Applied, thanks.
-Daniel

> ---
> dim | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/dim b/dim
> index a9f7747e9a9d..73936cea4869 100755
> --- a/dim
> +++ b/dim
> @@ -1486,7 +1486,7 @@ function dim_sparse
> 
> echo "Commit: $(git log -n1 --format='%s' $commit)"
> if [ -n "$diff_result" ]; then
> -            echo "$diff_result" | egrep '^[+-]' | egrep -v '^[+-]{3}'
> +            echo "$diff_result" | grep -E '^[+-]' | grep -E -v '^[+-]{3}'
> else
> echo "Okay!"
> fi
> -- 
> 2.14.3
> 
> _______________________________________________
> dim-tools mailing list
> dim-tools at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dim-tools

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic