grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to manual/html_node/Exit-Status.html


From: Karl Berry
Subject: Changes to manual/html_node/Exit-Status.html
Date: Sun, 24 May 2009 18:43:07 +0000

CVSROOT:        /web/grep
Module name:    grep
Changes by:     Karl Berry <karl>       09/05/24 18:43:01

Index: manual/html_node/Exit-Status.html
===================================================================
RCS file: manual/html_node/Exit-Status.html
diff -N manual/html_node/Exit-Status.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ manual/html_node/Exit-Status.html   24 May 2009 18:42:58 -0000      1.1
@@ -0,0 +1,63 @@
+<html lang="en">
+<head>
+<title>Exit Status - GNU Grep 2.5.4</title>
+<meta http-equiv="Content-Type" content="text/html">
+<meta name="description" content="GNU Grep 2.5.4">
+<meta name="generator" content="makeinfo 4.13">
+<link title="Top" rel="start" href="index.html#Top">
+<link rel="up" href="Invoking.html#Invoking" title="Invoking">
+<link rel="prev" href="Environment-Variables.html#Environment-Variables" 
title="Environment Variables">
+<link rel="next" href="grep-Programs.html#grep-Programs" title="grep Programs">
+<link href="http://www.gnu.org/software/texinfo/"; rel="generator-home" 
title="Texinfo Homepage">
+<!--
+This manual is for `grep', a pattern matching engine.
+
+Copyright (C) 1999, 2000, 2001, 2002, 2005, 2008, 2009 Free
+Software Foundation, Inc.
+
+     Permission is granted to copy, distribute and/or modify this
+     document under the terms of the GNU Free Documentation License,
+     Version 1.3 or any later version published by the Free Software
+     Foundation; with no Invariant Sections, with no Front-Cover Texts,
+     and with no Back-Cover Texts.  A copy of the license is included
+     in the section entitled ``GNU Free Documentation License''.
+   -->
+<meta http-equiv="Content-Style-Type" content="text/css">
+<style type="text/css"><!--
+  pre.display { font-family:inherit }
+  pre.format  { font-family:inherit }
+  pre.smalldisplay { font-family:inherit; font-size:smaller }
+  pre.smallformat  { font-family:inherit; font-size:smaller }
+  pre.smallexample { font-size:smaller }
+  pre.smalllisp    { font-size:smaller }
+  span.sc    { font-variant:small-caps }
+  span.roman { font-family:serif; font-weight:normal; } 
+  span.sansserif { font-family:sans-serif; font-weight:normal; } 
+--></style>
+</head>
+<body>
+<div class="node">
+<a name="Exit-Status"></a>
+<p>
+Next:&nbsp;<a rel="next" accesskey="n" 
href="grep-Programs.html#grep-Programs">grep Programs</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" 
href="Environment-Variables.html#Environment-Variables">Environment 
Variables</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="Invoking.html#Invoking">Invoking</a>
+<hr>
+</div>
+
+<h3 class="section">2.3 Exit Status</h3>
+
+<p><a name="index-exit-status-162"></a><a name="index-return-status-163"></a>
+Normally, the exit status is 0 if selected lines are found and 1 otherwise. 
+But the exit status is 2 if an error occurred, unless the <samp><span 
class="option">-q</span></samp> or
+<samp><span class="option">--quiet</span></samp> or <samp><span 
class="option">--silent</span></samp> option is used and a selected line
+is found. 
+Note, however, that <span class="sc">posix</span> only mandates,
+for programs such as <samp><span class="command">grep</span></samp>, 
<samp><span class="command">cmp</span></samp>, and <samp><span 
class="command">diff</span></samp>,
+that the exit status in case of error be greater than 1;
+it is therefore advisable, for the sake of portability,
+to use logic that tests for this general condition
+instead of strict equality with 2.
+
+   </body></html>
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]