From 6025d916884af7e769e44a5f2483272eb4dae2e9 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Mon, 18 Jul 2022 01:19:10 +0800 Subject: [PATCH] Fix typos (#58) --- README.rst | 2 +- src/shellingham/posix/__init__.py | 2 +- src/shellingham/posix/proc.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 1819704..302815d 100644 --- a/README.rst +++ b/README.rst @@ -56,7 +56,7 @@ There are a few choices for you to choose from. "the user's preferred command language interpreter". This is always available (even if the user is not in an interactive session), and likely the correct choice to launch an interactive sub-shell with. -* A command ``sh`` is almost guarenteed to exist, likely at ``/bin/sh``, since +* A command ``sh`` is almost guaranteed to exist, likely at ``/bin/sh``, since several POSIX tools rely on it. This should be suitable if you want to run a (possibly non-interactive) script. * All versions of DOS and Windows have an environment variable ``COMSPEC``. diff --git a/src/shellingham/posix/__init__.py b/src/shellingham/posix/__init__.py index fe1713f..b81bf08 100644 --- a/src/shellingham/posix/__init__.py +++ b/src/shellingham/posix/__init__.py @@ -27,7 +27,7 @@ def _iter_process_args(mapping, pid, max_depth): proc = mapping[pid] except KeyError: # We've reached the root process. Give up. break - if proc.args: # Persumably the process should always have a name? + if proc.args: # Presumably the process should always have a name? yield proc.args pid = proc.ppid # Go up one level. diff --git a/src/shellingham/posix/proc.py b/src/shellingham/posix/proc.py index 418a3bc..14cf9da 100644 --- a/src/shellingham/posix/proc.py +++ b/src/shellingham/posix/proc.py @@ -16,7 +16,7 @@ def detect_proc(): """Detect /proc filesystem style. This checks the /proc/{pid} directory for possible formats. Returns one of - the followings as str: + the following as str: * `stat`: Linux-style, i.e. ``/proc/{pid}/stat``. * `status`: BSD-style, i.e. ``/proc/{pid}/status``.