You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2021/12/05 09:49:58 UTC

[groovy] branch master updated: Use `grep -E` instead

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 19a108d  Use `grep -E` instead
19a108d is described below

commit 19a108dcdcd25c76ae53f413ca62a9d6af885e77
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Dec 5 17:43:40 2021 +0800

    Use `grep -E` instead
    
    `egrep` is non-standard and deprecated
---
 src/bin/startGroovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/startGroovy b/src/bin/startGroovy
index ee83bd4..9d6971b 100644
--- a/src/bin/startGroovy
+++ b/src/bin/startGroovy
@@ -259,7 +259,7 @@ if "$cygwin"; then
     # Now convert the arguments - kludge to limit ourselves to /bin/sh
     argsstr=''
     for arg in "$@" ; do
-        CHECK="$(echo "$arg"|egrep -c "$OURCYGPATTERN" -)"
+        CHECK="$(echo "$arg"|grep -E -c "$OURCYGPATTERN" -)"
         if [ "$CHECK" -ne 0 ] ; then
             patched="$(cygpath --path --ignore --mixed "$arg")"
         else