From: Jim Meyering Date: Mon, 15 Jun 2009 17:37:42 +0000 (+0200) Subject: maint: revert last change: we're not ready for "local" in scripts, yet X-Git-Tag: v7.5~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f51a401bc274c6f095e3087d6c67a1fa25e3a92b;p=thirdparty%2Fcoreutils.git maint: revert last change: we're not ready for "local" in scripts, yet Revert "use a local var: more readable" This reverts commit c0d82452883a10911c9cbc69c84144d99b7e6b08. --- diff --git a/tests/test-lib.sh b/tests/test-lib.sh index 60e92d3c62..d99e3a9662 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