CVSROOT: /web/grep Module name: grep Changes by: Karl Berry <karl> 09/05/24 18:43:01
Index: doc/grep_4.html =================================================================== RCS file: doc/grep_4.html diff -N doc/grep_4.html --- doc/grep_4.html 23 Jan 2002 10:33:52 -0000 1.3 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,175 +0,0 @@ -<HTML> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- Created on January, 23 2002 by texi2html 1.64 --> -<!-- -Written by: Lionel Cons <[email protected]> (original author) - Karl Berry <[email protected]> - Olaf Bachmann <[email protected]> - and many others. -Maintained by: Olaf Bachmann <[email protected]> -Send bugs and suggestions to <[email protected]> - ---> -<HEAD> -<TITLE>grep, print lines matching a pattern: 2.2 Environment Variables</TITLE> - -<META NAME="description" CONTENT="grep, print lines matching a pattern: 2.2 Environment Variables"> -<META NAME="keywords" CONTENT="grep, print lines matching a pattern: 2.2 Environment Variables"> -<META NAME="resource-type" CONTENT="document"> -<META NAME="distribution" CONTENT="global"> -<META NAME="Generator" CONTENT="texi2html 1.64"> - -</HEAD> - -<BODY LANG="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000"> - -<A NAME="SEC4"></A> -<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0> -<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_3.html#SEC3"> < </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_5.html#SEC5"> > </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_2.html#SEC2"> << </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_2.html#SEC2"> Up </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_5.html#SEC5"> >> </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep.html#SEC_Top">Top</A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_toc.html#SEC_Contents">Contents</A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_21.html#SEC21">Index</A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_abt.html#SEC_About"> ? </A>]</TD> -</TR></TABLE> -<HR SIZE=1> -<H2> 2.2 Environment Variables </H2> -<!--docid::SEC4::--> -<P> - -Grep's behavior is affected by the following environment variables. -</P><P> - -A locale <CODE>LC_<VAR>foo</VAR></CODE> is specified by examining the three -environment variables <CODE>LC_ALL</CODE>, <CODE>LC_<VAR>foo</VAR></CODE>, and <CODE>LANG</CODE>, -in that order. The first of these variables that is set specifies the -locale. For example, if <CODE>LC_ALL</CODE> is not set, but <CODE>LC_MESSAGES</CODE> -is set to <SAMP>`pt_BR'</SAMP>, then Brazilian Portuguese is used for the -<CODE>LC_MESSAGES</CODE> locale. The C locale is used if none of these -environment variables are set, or if the locale catalog is not -installed, or if <CODE>grep</CODE> was not compiled with national language -support (NLS). -</P><P> - -<A NAME="IDX118"></A> -</P><P> - -<DL COMPACT> - -<DT><CODE>GREP_OPTIONS</CODE> -<DD><A NAME="IDX119"></A> -<A NAME="IDX120"></A> -This variable specifies default options to be placed in front of any -explicit options. For example, if <CODE>GREP_OPTIONS</CODE> is -<SAMP>`--binary-files=without-match --directories=skip'</SAMP>, <CODE>grep</CODE> -behaves as if the two options <SAMP>`--binary-files=without-match'</SAMP> and -<SAMP>`--directories=skip'</SAMP> had been specified before -any explicit options. Option specifications are separated by -whitespace. A backslash escapes the next character, so it can be used to -specify an option containing whitespace or a backslash. -<P> - -<DT><CODE>GREP_COLOR</CODE> -<DD><A NAME="IDX121"></A> -<A NAME="IDX122"></A> -This variable specifies the surrounding markers use to highlight the matching -text. The default is control ascii red. -<P> - -<DT><CODE>LC_ALL</CODE> -<DD><DT><CODE>LC_COLLATE</CODE> -<DD><DT><CODE>LANG</CODE> -<DD><A NAME="IDX123"></A> -<A NAME="IDX124"></A> -<A NAME="IDX125"></A> -<A NAME="IDX126"></A> -<A NAME="IDX127"></A> -<A NAME="IDX128"></A> -These variables specify the <CODE>LC_COLLATE</CODE> locale, which determines -the collating sequence used to interpret range expressions like -<SAMP>`[a-z]'</SAMP>. -<P> - -<DT><CODE>LC_ALL</CODE> -<DD><DT><CODE>LC_CTYPE</CODE> -<DD><DT><CODE>LANG</CODE> -<DD><A NAME="IDX129"></A> -<A NAME="IDX130"></A> -<A NAME="IDX131"></A> -<A NAME="IDX132"></A> -<A NAME="IDX133"></A> -<A NAME="IDX134"></A> -These variables specify the <CODE>LC_CTYPE</CODE> locale, which determines the -type of characters, e.g., which characters are whitespace. -<P> - -<DT><CODE>LC_ALL</CODE> -<DD><DT><CODE>LC_MESSAGES</CODE> -<DD><DT><CODE>LANG</CODE> -<DD><A NAME="IDX135"></A> -<A NAME="IDX136"></A> -<A NAME="IDX137"></A> -<A NAME="IDX138"></A> -<A NAME="IDX139"></A> -<A NAME="IDX140"></A> -<A NAME="IDX141"></A> -<A NAME="IDX142"></A> -These variables specify the <CODE>LC_MESSAGES</CODE> locale, which determines -the language that <CODE>grep</CODE> uses for messages. The default C -locale uses American English messages. -<P> - -<DT><CODE>POSIXLY_CORRECT</CODE> -<DD><A NAME="IDX143"></A> -If set, <CODE>grep</CODE> behaves as POSIX.2 requires; otherwise, -<CODE>grep</CODE> behaves more like other GNU programs. POSIX.2 -requires that options that -follow file names must be treated as file names; by default, such -options are permuted to the front of the operand list and are treated as -options. Also, POSIX.2 requires that unrecognized options be -diagnosed as -"illegal", but since they are not really against the law the default -is to diagnose them as "invalid". <CODE>POSIXLY_CORRECT</CODE> also -disables <CODE>_<VAR>N</VAR>_GNU_nonoption_argv_flags_</CODE>, described below. -<P> - -<DT><CODE>_<VAR>N</VAR>_GNU_nonoption_argv_flags_</CODE> -<DD><A NAME="IDX144"></A> -(Here <CODE><VAR>N</VAR></CODE> is <CODE>grep</CODE>'s numeric process ID.) If the -<VAR>i</VAR>th character of this environment variable's value is <SAMP>`1'</SAMP>, do -not consider the <VAR>i</VAR>th operand of <CODE>grep</CODE> to be an option, even if -it appears to be one. A shell can put this variable in the environment -for each command it runs, specifying which operands are the results of -file name wildcard expansion and therefore should not be treated as -options. This behavior is available only with the GNU C library, and -only when <CODE>POSIXLY_CORRECT</CODE> is not set. -<P> - -</DL> -<P> - -<A NAME="Diagnostics"></A> -<HR SIZE=1> -<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0> -<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_3.html#SEC3"> < </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_5.html#SEC5"> > </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_2.html#SEC2"> << </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_2.html#SEC2"> Up </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_5.html#SEC5"> >> </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep.html#SEC_Top">Top</A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_toc.html#SEC_Contents">Contents</A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_21.html#SEC21">Index</A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_abt.html#SEC_About"> ? </A>]</TD> -</TR></TABLE> -<BR> -<FONT SIZE="-1"> -This document was generated -by <I>root</I> on <I>January, 23 2002</I> -using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html -"><I>texi2html</I></A> - -</BODY> -</HTML>
