From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2581A158018 for ; Sat, 2 Oct 2021 06:20:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49E75E08C3; Sat, 2 Oct 2021 06:20:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 251F7E088C for ; Sat, 2 Oct 2021 06:20:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EC93C342ADE for ; Sat, 2 Oct 2021 06:20:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 716EE107 for ; Sat, 2 Oct 2021 06:20:04 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1633155579.7082cc0798ba101fa596ff066e97290fb5f988f0.vapier@gentoo> Subject: [gentoo-commits] proj/build-docbook-catalog:master commit in: / X-VCS-Repository: proj/build-docbook-catalog X-VCS-Files: build-docbook-catalog X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 7082cc0798ba101fa596ff066e97290fb5f988f0 X-VCS-Branch: master Date: Sat, 2 Oct 2021 06:20:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 62d14c25-ba53-418c-9919-0ef7a44381f0 X-Archives-Hash: 8ae17c250f2036ccb3cd4df23938d73d commit: 7082cc0798ba101fa596ff066e97290fb5f988f0 Author: Mike Frysinger gentoo org> AuthorDate: Sat Oct 2 06:19:39 2021 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sat Oct 2 06:19:39 2021 +0000 URL: https://gitweb.gentoo.org/proj/build-docbook-catalog.git/commit/?id=7082cc07 use `grep -E` instead of `egrep` This makes shellcheck happy and is easy enough to do. Signed-off-by: Mike Frysinger gentoo.org> build-docbook-catalog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-docbook-catalog b/build-docbook-catalog index 669cbf8..495de64 100755 --- a/build-docbook-catalog +++ b/build-docbook-catalog @@ -221,7 +221,7 @@ create_catalogs() { clean_catalog() { local list f regex=$1 catalog=${ROOT}$2 - list=$(egrep --only-matching "${regex}" "${catalog}" | sort -u) + list=$(grep -E --only-matching "${regex}" "${catalog}" | sort -u) for f in ${list}; do xmlcatalog --noout --del "${f}" "${catalog}" done @@ -265,7 +265,7 @@ populate_dtd() { verb " No entities available for ${dtd}" return 0 fi - dtd_date=$(egrep --only-matching --max-count=1 \ + dtd_date=$(grep -E --only-matching --max-count=1 \ '[0-9]{4}/[0-9]{2}/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}' \ "${ROOT}${dtd}") if [[ -z ${dtd_date} ]]; then