From: Zac Medico Date: Wed, 28 May 2008 01:30:51 +0000 (-0000) Subject: Convert doman to use bash's =~ operator instead of calling egrep. X-Git-Tag: v2.1.5.3~35 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c8780d7772b891bf08002c2e1475ef580ef94441;p=portage.git Convert doman to use bash's =~ operator instead of calling egrep. (trunk r10460) svn path=/main/branches/2.1.2/; revision=10463 --- diff --git a/bin/doman b/bin/doman index c021f0a44..e074edad2 100755 --- a/bin/doman +++ b/bin/doman @@ -33,7 +33,7 @@ for x in "$@" ; do mandir=${i18n}man${suffix:0:1} - if echo ${mandir} | egrep -q 'man[0-9n](|f|p|pm)$' -; then + if [[ ${mandir} =~ man[0-9n](|f|p|pm)$ ]] ; then if [[ -s ${x} ]] ; then if [[ ! -d ${D}/usr/share/man/${mandir} ]] ; then install -d "${D}/usr/share/man/${mandir}"