From f51a401bc274c6f095e3087d6c67a1fa25e3a92b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 15 Jun 2009 19:37:42 +0200 Subject: [PATCH] maint: revert last change: we're not ready for "local" in scripts, yet Revert "use a local var: more readable" This reverts commit c0d82452883a10911c9cbc69c84144d99b7e6b08. --- tests/test-lib.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test-lib.sh b/tests/test-lib.sh index 60e92d3..d99e3a9 100644 --- a/tests/test-lib.sh +++ b/tests/test-lib.sh @@ -124,8 +124,7 @@ uid_is_privileged_() get_process_status_() { - local pid=$1 - sed -n '/^State:[ ]*\([[:alpha:]]\).*/s//\1/p' /proc/$pid/status + sed -n '/^State:[ ]*\([[:alpha:]]\).*/s//\1/p' /proc/$1/status } # Convert an ls-style permission string, like drwxr----x and -rw-r-x-wx -- 2.7.4