From: Michael Kerrisk Date: Fri, 8 May 2015 11:13:03 +0000 (+0200) Subject: intro.1: Drop intro paragraph on '$?' shell variable X-Git-Tag: man-pages-4.01~260 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e7cb1f8f13cce569804a65bda937659d3a56f00;p=thirdparty%2Fman-pages.git intro.1: Drop intro paragraph on '$?' shell variable As Andries notes, this piece of text is rather out of place in a page that was intended to provide a tutorial introduction for beginners logging in on a Linux system. Reported-by: Andries E. Brouwer Signed-off-by: Michael Kerrisk --- diff --git a/man1/intro.1 b/man1/intro.1 index c507b1c6c1..d4ec2b9ae2 100644 --- a/man1/intro.1 +++ b/man1/intro.1 @@ -22,9 +22,6 @@ .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" -.\" 2007-10-23 mtk Added intro paragraph about section, plus a paragraph -.\" about exit status values. -.\" .TH INTRO 1 2015-03-29 "Linux" "Linux User's Manual" .SH NAME intro \- introduction to user commands @@ -32,19 +29,6 @@ intro \- introduction to user commands Section 1 of the manual describes user commands and tools, for example, file manipulation tools, shells, compilers, web browsers, file and image viewers and editors, and so on. - -All commands yield a status value on termination. -This value can be tested (e.g., in most shells the variable -.I $? -contains the status of the last executed command) -to see whether the command completed successfully. -A zero exit status is conventionally used to indicate success, -and a nonzero status means that the command was unsuccessful. -(Details of the exit status can be found in -.BR wait (2).) -A nonzero exit status can be in the range 1 to 255, and some commands -use different nonzero status values to indicate the reason why the -command failed. .SH NOTES Linux is a flavor of UNIX, and as a first approximation all user commands under UNIX work precisely the same under