]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: revert last change: we're not ready for "local" in scripts, yet
authorJim Meyering <meyering@redhat.com>
Mon, 15 Jun 2009 17:37:42 +0000 (19:37 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 15 Jun 2009 17:37:42 +0000 (19:37 +0200)
Revert "use a local var: more readable"
This reverts commit c0d82452883a10911c9cbc69c84144d99b7e6b08.

tests/test-lib.sh

index 60e92d3c62499db50415782ec4683651896410f1..d99e3a96627a97821d51763f9b94b517452f765d 100644 (file)
@@ -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