summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-06-14 14:43:16 +0200
committerJim Meyering <meyering@redhat.com>2009-06-15 18:34:21 +0200
commitc0d82452883a10911c9cbc69c84144d99b7e6b08 (patch)
treed0fce9f2d1800be5cc64c4aca59eade085d81127 /tests
parentae494d4be80df2aff50a2ac46fdc0c23de109ea3 (diff)
downloadcoreutils-c0d82452883a10911c9cbc69c84144d99b7e6b08.tar.xz
use a local var: more readable
Diffstat (limited to 'tests')
-rw-r--r--tests/test-lib.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-lib.sh b/tests/test-lib.sh
index d99e3a966..60e92d3c6 100644
--- a/tests/test-lib.sh
+++ b/tests/test-lib.sh
@@ -124,7 +124,8 @@ uid_is_privileged_()
get_process_status_()
{
- sed -n '/^State:[ ]*\([[:alpha:]]\).*/s//\1/p' /proc/$1/status
+ local pid=$1
+ sed -n '/^State:[ ]*\([[:alpha:]]\).*/s//\1/p' /proc/$pid/status
}
# Convert an ls-style permission string, like drwxr----x and -rw-r-x-wx