]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix packman for new grep, which doesn't support \+ in BREs
authorErik van der Kouwe <erik@minix3.org>
Wed, 23 Jun 2010 08:12:40 +0000 (08:12 +0000)
committerErik van der Kouwe <erik@minix3.org>
Wed, 23 Jun 2010 08:12:40 +0000 (08:12 +0000)
commands/packman/packman.sh

index bac7b837b5860c2e47ca1cf15114ade8a4fdf180..459258ea327759a3c6c241984101bbbc169dd223 100644 (file)
@@ -192,7 +192,7 @@ do  cd $TMPDIR
       do
        ok=y
        if [ $packlistno -eq 0 ]
-       then pat="^[0-9]\+|$packno[-|.]"
+       then pat="^[1-9][0-9]*|$packno[-|.]"
        else pat="^$packno|"
        fi
        if [ "`grep -c $pat $TMPF`" -ne 1 ]