From 7103fdb3fe7a15aaafd2961cf6e2433fbf5d60f1 Mon Sep 17 00:00:00 2001 From: Peter Whittaker Date: Mon, 14 Aug 2023 10:45:32 -0400 Subject: [PATCH] podman.1.md: Fix formatting of exit code 127, clarify wording of `exit code` example. Signed-off-by: Peter Whittaker --- docs/source/markdown/podman.1.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/source/markdown/podman.1.md b/docs/source/markdown/podman.1.md index 2d2f42a436..61ccf5c131 100644 --- a/docs/source/markdown/podman.1.md +++ b/docs/source/markdown/podman.1.md @@ -289,18 +289,19 @@ the exit codes follow the `chroot` standard, see below: Error: unknown flag: --foo 125 - **126** Executing a _contained command_ and the _command_ cannot be invoked + **126** Executing a _container command_ and the _command_ cannot be invoked $ podman run busybox /etc; echo $? Error: container_linux.go:346: starting container process caused "exec: \"/etc\": permission denied": OCI runtime error 126 - **127** Executing a _contained command_ and the _command_ cannot be found + **127** Executing a _container command_ and the _command_ cannot be found + $ podman run busybox foo; echo $? Error: container_linux.go:346: starting container process caused "exec: \"foo\": executable file not found in $PATH": OCI runtime error 127 - **Exit code** _contained command_ exit code + **Exit code** otherwise, `podman` returns the exit code of the _container command_ $ podman run busybox /bin/sh -c 'exit 3'; echo $? 3