Skip to content

Commit

Permalink
Fix typos (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng committed Jul 17, 2022
1 parent 23cb5cb commit 6025d91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -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``.
Expand Down
2 changes: 1 addition & 1 deletion src/shellingham/posix/__init__.py
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/shellingham/posix/proc.py
Expand Up @@ -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``.
Expand Down

0 comments on commit 6025d91

Please sign in to comment.