diff options
author | Jim Meyering <meyering@redhat.com> | 2009-06-15 19:37:42 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-06-15 19:37:42 +0200 |
commit | f51a401bc274c6f095e3087d6c67a1fa25e3a92b (patch) | |
tree | ca567ba9ae1d870b139778df835707eb1e358ee2 /tests | |
parent | c0d82452883a10911c9cbc69c84144d99b7e6b08 (diff) | |
download | coreutils-f51a401bc274c6f095e3087d6c67a1fa25e3a92b.tar.xz |
maint: revert last change: we're not ready for "local" in scripts, yet
Revert "use a local var: more readable"
This reverts commit c0d82452883a10911c9cbc69c84144d99b7e6b08.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-lib.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test-lib.sh b/tests/test-lib.sh index 60e92d3c6..d99e3a966 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 |