From b2d56995a088ec32a4da5a5bb9cbcd446bffe5c0 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Thu, 15 Jul 2004 16:27:35 +0000 Subject: [PATCH] Great, native expr blows up if = is unqouted, gnu expr doesn't care. Use -ne instead of ! -eq while we're at it. --- buildpkg.packaging.irix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildpkg.packaging.irix b/buildpkg.packaging.irix index 5a6e701..8867041 100644 --- a/buildpkg.packaging.irix +++ b/buildpkg.packaging.irix @@ -549,8 +549,8 @@ parse_def() fi ;; *) - equalindex=$(expr index "$line" =) - if [ ! $equalindex -eq 0 ]; then + equalindex=$(expr index "$line" "\=") + if [ $equalindex -ne 0 ]; then case "${line:0:(($equalindex-1))}" in 'pkgname') pkgname="$(_upls ${line:$equalindex:${#line}})"