diff options
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/grep/config.h | 188 | ||||
-rw-r--r-- | gnu/usr.bin/grep/doc/Makefile | 6 | ||||
-rw-r--r-- | gnu/usr.bin/grep/doc/grep.texi | 672 | ||||
-rw-r--r-- | gnu/usr.bin/grep/doc/version.texi | 3 | ||||
-rw-r--r-- | gnu/usr.bin/grep/getopt1.c | 189 | ||||
-rw-r--r-- | gnu/usr.bin/grep/savedir.c | 135 | ||||
-rw-r--r-- | gnu/usr.bin/grep/savedir.h | 15 | ||||
-rw-r--r-- | gnu/usr.bin/grep/stpcpy.c | 52 | ||||
-rw-r--r-- | gnu/usr.bin/grep/system.h | 188 | ||||
-rw-r--r-- | gnu/usr.bin/grep/tests/bre.awk | 26 | ||||
-rwxr-xr-x | gnu/usr.bin/grep/tests/bre.sh | 13 | ||||
-rw-r--r-- | gnu/usr.bin/grep/tests/bre.tests | 62 | ||||
-rwxr-xr-x | gnu/usr.bin/grep/tests/empty.sh | 30 | ||||
-rw-r--r-- | gnu/usr.bin/grep/tests/ere.awk | 31 | ||||
-rwxr-xr-x | gnu/usr.bin/grep/tests/ere.sh | 13 | ||||
-rw-r--r-- | gnu/usr.bin/grep/tests/ere.tests | 215 | ||||
-rwxr-xr-x | gnu/usr.bin/grep/tests/khadafy.sh | 20 | ||||
-rwxr-xr-x | gnu/usr.bin/grep/tests/options.sh | 36 | ||||
-rw-r--r-- | gnu/usr.bin/grep/tests/spencer1.awk | 14 | ||||
-rwxr-xr-x | gnu/usr.bin/grep/tests/spencer1.sh | 13 | ||||
-rw-r--r-- | gnu/usr.bin/grep/tests/spencer1.tests | 122 | ||||
-rwxr-xr-x | gnu/usr.bin/grep/tests/status.sh | 38 | ||||
-rwxr-xr-x | gnu/usr.bin/grep/tests/warning.sh | 19 |
23 files changed, 0 insertions, 2100 deletions
diff --git a/gnu/usr.bin/grep/config.h b/gnu/usr.bin/grep/config.h deleted file mode 100644 index 415df26b19972..0000000000000 --- a/gnu/usr.bin/grep/config.h +++ /dev/null @@ -1,188 +0,0 @@ -/* $FreeBSD$ */ - -/* config.h. Generated automatically by configure. */ -/* config.hin. Generated automatically from configure.in by autoheader. */ - -/* Define if using alloca.c. */ -/* #undef C_ALLOCA */ - -/* Define if the closedir function returns void instead of int. */ -/* #undef CLOSEDIR_VOID */ - -/* Define to empty if the keyword does not work. */ -/* #undef const */ - -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -/* #undef CRAY_STACKSEG_END */ - -/* Define if you have alloca, as a function or macro. */ -#define HAVE_ALLOCA 1 - -/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ -/* #undef HAVE_ALLOCA_H */ - -/* Define if you have a working `mmap' system call. */ -#define HAVE_MMAP 1 - -/* Define as __inline if that's what the C compiler calls it. */ -/* #undef inline */ - -/* Define to `long' if <sys/types.h> doesn't define. */ -/* #undef off_t */ - -/* Define to `unsigned' if <sys/types.h> doesn't define. */ -/* #undef size_t */ - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -/* #undef STACK_DIRECTION */ - -/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */ -/* #undef STAT_MACROS_BROKEN */ - -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Define to use grep's error-checking malloc in the kwset routines. */ -#define GREP 1 - -/* Package name. */ -#define PACKAGE "grep" - -/* Version number. */ -#define VERSION "2.3" - -/* Hack for Visual C++ suggested by irox. */ -/* #undef alloca */ - -/* #undef HAVE_STPCPY */ - -/* #undef ENABLE_NLS */ - -/* #undef HAVE_CATGETS */ - -/* #undef HAVE_GETTEXT */ - -#define HAVE_LC_MESSAGES 1 - -/* - * DOS specific - */ -/* #undef HAVE_DOS_FILE_NAMES */ - -/* Define if you have the __argz_count function. */ -/* #undef HAVE___ARGZ_COUNT */ - -/* Define if you have the __argz_next function. */ -/* #undef HAVE___ARGZ_NEXT */ - -/* Define if you have the __argz_stringify function. */ -/* #undef HAVE___ARGZ_STRINGIFY */ - -/* Define if you have the btowc function. */ -/* #undef HAVE_BTOWC */ - -/* Define if you have the dcgettext function. */ -/* #undef HAVE_DCGETTEXT */ - -/* Define if you have the getcwd function. */ -#define HAVE_GETCWD 1 - -/* Define if you have the getpagesize function. */ -#define HAVE_GETPAGESIZE 1 - -/* Define if you have the isascii function. */ -#define HAVE_ISASCII 1 - -/* Define if you have the memchr function. */ -#define HAVE_MEMCHR 1 - -/* Define if you have the munmap function. */ -#define HAVE_MUNMAP 1 - -/* Define if you have the putenv function. */ -#define HAVE_PUTENV 1 - -/* Define if you have the setenv function. */ -#define HAVE_SETENV 1 - -/* Define if you have the setlocale function. */ -#define HAVE_SETLOCALE 1 - -/* Define if you have the setmode function. */ -#define HAVE_SETMODE 1 - -/* Define if you have the stpcpy function. */ -/* #undef HAVE_STPCPY */ - -/* Define if you have the strcasecmp function. */ -#define HAVE_STRCASECMP 1 - -/* Define if you have the strchr function. */ -#define HAVE_STRCHR 1 - -/* Define if you have the strdup function. */ -#define HAVE_STRDUP 1 - -/* Define if you have the strerror function. */ -#define HAVE_STRERROR 1 - -/* Define if you have the <argz.h> header file. */ -/* #undef HAVE_ARGZ_H */ - -/* Define if you have the <dirent.h> header file. */ -#define HAVE_DIRENT_H 1 - -/* Define if you have the <libintl.h> header file. */ -/* #undef HAVE_LIBINTL_H */ - -/* Define if you have the <limits.h> header file. */ -#define HAVE_LIMITS_H 1 - -/* Define if you have the <locale.h> header file. */ -#define HAVE_LOCALE_H 1 - -/* Define if you have the <malloc.h> header file. */ -/* #undef HAVE_MALLOC_H */ - -/* Define if you have the <memory.h> header file. */ -#define HAVE_MEMORY_H 1 - -/* Define if you have the <ndir.h> header file. */ -/* #undef HAVE_NDIR_H */ - -/* Define if you have the <nl_types.h> header file. */ -#define HAVE_NL_TYPES_H 1 - -/* Define if you have the <stdlib.h> header file. */ -#define HAVE_STDLIB_H 1 - -/* Define if you have the <string.h> header file. */ -#define HAVE_STRING_H 1 - -/* Define if you have the <sys/dir.h> header file. */ -/* #undef HAVE_SYS_DIR_H */ - -/* Define if you have the <sys/ndir.h> header file. */ -/* #undef HAVE_SYS_NDIR_H */ - -/* Define if you have the <sys/param.h> header file. */ -#define HAVE_SYS_PARAM_H 1 - -/* Define if you have the <unistd.h> header file. */ -#define HAVE_UNISTD_H 1 - -/* Define if you have the <wchar.h> header file. */ -/* #undef HAVE_WCHAR_H */ - -/* Define if you have the <wctype.h> header file. */ -/* #undef HAVE_WCTYPE_H */ - -/* Define if you have the i library (-li). */ -/* #undef HAVE_LIBI */ diff --git a/gnu/usr.bin/grep/doc/Makefile b/gnu/usr.bin/grep/doc/Makefile deleted file mode 100644 index 82620f984eb7d..0000000000000 --- a/gnu/usr.bin/grep/doc/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $FreeBSD$ - -INFO= grep -INFOSECTION= "System Utilities" - -.include <bsd.info.mk> diff --git a/gnu/usr.bin/grep/doc/grep.texi b/gnu/usr.bin/grep/doc/grep.texi deleted file mode 100644 index 23b0553182eff..0000000000000 --- a/gnu/usr.bin/grep/doc/grep.texi +++ /dev/null @@ -1,672 +0,0 @@ -\input texinfo @c -*-texinfo-*- -@c %**start of header -@setfilename grep.info -@settitle grep, print lines matching a pattern -@c %**end of header - -@c This file has the new style title page commands. -@c Run `makeinfo' rather than `texinfo-format-buffer'. - -@c smallbook - -@c tex -@c \overfullrule=0pt -@c end tex - -@include version.texi - -@c Combine indices. -@syncodeindex ky cp -@syncodeindex pg cp -@syncodeindex tp cp - -@defcodeindex op -@syncodeindex op fn - -@ifinfo -@direntry -* grep: (grep). print lines matching a pattern. -@end direntry -This file documents @sc{grep}, a pattern matching engine. - - -Published by the Free Software Foundation, -59 Temple Place - Suite 330 -Boston, MA 02111-1307, USA - -Copyright (C) 1998 Free Software Foundation, Inc. - -Permission is granted to make and distribute verbatim copies of -this manual provided the copyright notice and this permission notice -are preserved on all copies. - -@ignore -Permission is granted to process this file through TeX and print the -results, provided the printed document carries copying permission -notice identical to this one except for the removal of this paragraph -(this paragraph not being relevant to the printed manual). - -@end ignore -Permission is granted to copy and distribute modified versions of this -manual under the conditions for verbatim copying, provided that the entire -resulting derived work is distributed under the terms of a permission -notice identical to this one. - -Permission is granted to copy and distribute translations of this manual -into another language, under the above conditions for modified versions, -except that this permission notice may be stated in a translation approved -by the Foundation. -@end ifinfo - -@setchapternewpage off - -@titlepage -@title grep, searching for a pattern -@subtitle version @value{VERSION}, @value{UPDATED} -@author Alain Magloire et al. - -@page -@vskip 0pt plus 1filll -Copyright @copyright{} 1998 Free Software Foundation, Inc. - -@sp 2 -Published by the Free Software Foundation, @* -59 Temple Place - Suite 330, @* -Boston, MA 02111-1307, USA - -Permission is granted to make and distribute verbatim copies of -this manual provided the copyright notice and this permission notice -are preserved on all copies. - -Permission is granted to copy and distribute modified versions of this -manual under the conditions for verbatim copying, provided that the entire -resulting derived work is distributed under the terms of a permission -notice identical to this one. - -Permission is granted to copy and distribute translations of this manual -into another language, under the above conditions for modified versions, -except that this permission notice may be stated in a translation approved -by the Foundation. - -@end titlepage -@page - - -@node Top, Introduction, (dir), (dir) -@comment node-name, next, previous, up - -@ifinfo -This document was produced for version @value{VERSION} of @sc{GNU} @sc{grep}. -@end ifinfo - -@menu -* Introduction:: Introduction. -* Invoking:: Invoking @sc{grep}; description of options. -* Diagnostics:: Exit status returned by @sc{grep}. -* Grep Programs:: @sc{grep} programs. -* Regular Expressions:: Regular Expressions. -* Reporting Bugs:: Reporting Bugs. -* Concept Index:: A menu with all the topics in this manual. -* Index:: A menu with all @sc{grep} commands - and command-line options. -@end menu - - -@node Introduction, Invoking, Top, Top -@comment node-name, next, previous, up -@chapter Introduction - -@cindex Searching for a pattern. -@sc{grep} searches the input files for lines containing a match to a given -pattern list. When it finds a match in a line, it copies the line to standard -output (by default), or does whatever other sort of output you have requested -with options. @sc{grep} expects to do the matching on text. -Since newline is also a separator for the list of patterns, there -is no way to match newline characters in a text. - -@node Invoking, Diagnostics, Introduction, Top -@comment node-name, next, previous, up -@chapter Invoking @sc{grep} - -@sc{grep} comes with a rich set of options from POSIX.2 and GNU extensions. - -@table @samp - -@item -c -@itemx --count -@opindex -c -@opindex -count -@cindex counting lines -Suppress normal output; instead print a count of matching -lines for each input file. With the @samp{-v}, @samp{--revert-match} option, -count non-matching lines. - -@item -e @var{pattern} -@itemx --regexp=@var{pattern} -@opindex -e -@opindex --regexp=@var{pattern} -@cindex pattern list -Use @var{pattern} as the pattern; useful to protect patterns -beginning with a @samp{-}. - -@item -f @var{file} -@itemx --file=@var{file} -@opindex -f -@opindex --file -@cindex pattern from file -Obtain patterns from @var{file}, one per line. The empty -file contains zero patterns, and therefore matches nothing. - -@item -i -@itemx --ignore-case -@opindex -i -@opindex --ignore-case -@cindex case insensitive search -Ignore case distinctions in both the pattern and the input files. - -@item -l -@itemx --files-with-matches -@opindex -l -@opindex --files-with-matches -@cindex names of matching files -Suppress normal output; instead print the name of each input -file from which output would normally have been printed. -The scanning of every file will stop on the first match. - -@item -n -@itemx --line-number -@opindex -n -@opindex --line-number -@cindex line numbering -Prefix each line of output with the line number within its input file. - -@item -q -@itemx --quiet -@itemx --silent -@opindex -q -@opindex --quiet -@opindex --silent -@cindex quiet, silent -Quiet; suppress normal output. The scanning of every file will stop on -the first match. Also see the @samp{-s} or @samp{--no-messages} option. - -@item -s -@itemx --no-messages -@opindex -s -@opindex --no-messages -@cindex suppress error messages -Suppress error messages about nonexistent or unreadable files. -Portability note: unlike GNU @sc{grep}, BSD @sc{grep} does not comply -with POSIX.2, because BSD @sc{grep} lacks a @samp{-q} option and its -@samp{-s} option behaves like GNU @sc{grep}'s @samp{-q} option. Shell -scripts intended to be portable to BSD @sc{grep} should avoid both -@samp{-q} and @samp{-s} and should redirect -output to @file{/dev/null} instead. - -@item -v -@itemx --revert-match -@opindex -v -@opindex --revert-match -@cindex revert matching -@cindex print non-matching lines -Invert the sense of matching, to select non-matching lines. - -@item -x -@itemx --line-regexp -@opindex -x -@opindex --line-regexp -@cindex match the whole line -Select only those matches that exactly match the whole line. - -@end table - -@section GNU Extensions - -@table @samp - -@item -A @var{num} -@itemx --after-context=@var{num} -@opindex -A -@opindex --after-context -@cindex after context -@cindex context lines, after match -Print @var{num} lines of trailing context after matching lines. - -@item -B @var{num} -@itemx --before-context=@var{num} -@opindex -B -@opindex --before-context -@cindex before context -@cindex context lines, before match -Print @var{num} lines of leading context before matching lines. - -@item -C -@itemx --context@var{[=num]} -@opindex -C -@opindex --context -@cindex context -Print @var{num} lines (default 2) of output context. - - -@item -NUM -@opindex -NUM -Same as @samp{--context=@var{num}} lines of leading and trailing -context. However, grep will never print any given line more than once. - - -@item -V -@itemx --version -@opindex -V -@opindex --version -@cindex Version, printing -Print the version number of @sc{grep} to the standard output stream. -This version number should be included in all bug reports. - -@item --help -@opindex --help -@cindex Usage summary, printing -Print a usage message briefly summarizing these command-line options -and the bug-reporting address, then exit. - -@item -b -@itemx --byte-offset -@opindex -b -@opindex --byte-offset -@cindex byte offset -Print the byte offset within the input file before each line of output. -When @sc{grep} runs on MS-DOS or MS-Windows, the printed byte offsets -depend on whether the @samp{-u} (@samp{--unix-byte-offsets}) option is -used; see below. - -@item -d @var{action} -@itemx --directories=@var{action} -@opindex -d -@opindex --directories -@cindex directory search -If an input file is a directory, use @var{action} to process it. -By default, @var{action} is @samp{read}, which means that directories are -read just as if they were ordinary files (some operating systems -and filesystems disallow this, and will cause @sc{grep} to print error -messages for every directory). If @var{action} is @samp{skip}, -directories are silently skipped. If @var{action} is @samp{recurse}, -@sc{grep} reads all files under each directory, recursively; this is -equivalent to the @samp{-r} option. - -@item -h -@itemx --no-filename -@opindex -h -@opindex --no-filename -@cindex no filename prefix -Suppress the prefixing of filenames on output when multiple files are searched. - -@item -L -@itemx --files-without-match -@opindex -L -@opindex --files-without-match -@cindex files which don't match -Suppress normal output; instead print the name of each input -file from which no output would normally have been printed. -The scanning of every file will stop on the first match. - -@item -a -@itemx --text -@opindex -a -@opindex --text -@cindex suppress binary data -@cindex binary files -Do not suppress output lines that contain binary data. -Normally, if the first few bytes of a file indicate -that the file contains binary data, grep outputs only a -message saying that the file matches the pattern. This -option causes grep to act as if the file is a text -file, even if it would otherwise be treated as binary. -@emph{Warning:} the result might be binary garbage -printed to the terminal, which can have nasty -side-effects if the terminal driver interprets some of -it as commands. - -@item -w -@itemx --word-regexp -@opindex -w -@opindex --word-regexp -@cindex matching whole words -Select only those lines containing matches that form -whole words. The test is that the matching substring -must either be at the beginning of the line, or preceded -by a non-word constituent character. Similarly, -it must be either at the end of the line or followed by -a non-word constituent character. Word-constituent -characters are letters, digits, and the underscore. - -@item -r -@itemx --recursive -@opindex -r -@opindex --recursive -@cindex recursive search -@cindex searching directory trees -For each directory mentioned in the command line, read and process all -files in that directory, recursively. This is the same as the @samp{-d -recurse} option. - -@item -y -@opindex -y -@cindex case insensitive search, obsolete option -Obsolete synonym for @samp{-i}. - -@item -U -@itemx --binary -@opindex -U -@opindex --binary -@cindex DOS/Windows binary files -@cindex binary files, DOS/Windows -Treat the file(s) as binary. By default, under MS-DOS -and MS-Windows, @sc{grep} guesses the file type by looking -at the contents of the first 32KB read from the file. -If @sc{grep} decides the file is a text file, it strips the -CR characters from the original file contents (to make -regular expressions with @code{^} and @code{$} work correctly). -Specifying @samp{-U} overrules this guesswork, causing all -files to be read and passed to the matching mechanism -verbatim; if the file is a text file with CR/LF pairs -at the end of each line, this will cause some regular -expressions to fail. This option is only supported on -MS-DOS and MS-Windows. - -@item -u -@itemx --unix-byte-offsets -@opindex -u -@opindex --unix-byte-offsets -@cindex DOS byte offsets -@cindex byte offsets, on DOS/Windows -Report Unix-style byte offsets. This switch causes -@sc{grep} to report byte offsets as if the file were Unix style -text file, i.e. the byte offsets ignore the CR characters which were -stripped off. This will produce results identical to running @sc{grep} on -a Unix machine. This option has no effect unless @samp{-b} -option is also used; it is only supported on MS-DOS and -MS-Windows. - -@end table - -Several additional options control which variant of the @sc{grep} -matching engine is used. @xref{Grep Programs}. - -@sc{grep} uses the environment variable @var{LANG} to -provide internationalization support, if compiled with this feature. - -@node Diagnostics, Grep Programs, Invoking, Top -@comment node-name, next, previous, up -@chapter Diagnostics -Normally, exit status is 0 if matches were found, and 1 if no matches -were found (the @samp{-v} option inverts the sense of the exit status). -Exit status is 2 if there were syntax errors in the pattern, -inaccessible input files, or other system errors. - -@node Grep Programs, Regular Expressions, Diagnostics, Top -@comment node-name, next, previous, up -@chapter @sc{grep} programs - -@sc{grep} searches the named input files (or standard input if no -files are named, or the file name @file{-} is given) for lines containing -a match to the given pattern. By default, @sc{grep} prints the matching lines. -There are three major variants of @sc{grep}, controlled by the following options. - -@table @samp - -@item -G -@itemx --basic-regexp -@opindex -G -@opindex --basic-regexp -@cindex matching basic regular expressions -Interpret pattern as a basic regular expression. This is the default. - -@item -E -@item --extended-regexp -@opindex -E -@opindex --extended-regexp -@cindex matching extended regular expressions -Interpret pattern as an extended regular expression. - - -@item -F -@itemx --fixed-strings -@opindex -F -@opindex --fixed-strings -@cindex matching fixed strings -Interpret pattern as a list of fixed strings, separated -by newlines, any of which is to be matched. - -@end table - -In addition, two variant programs @sc{egrep} and @sc{fgrep} are available. -@sc{egrep} is similar (but not identical) to @samp{grep -E}, and -is compatible with the historical Unix @sc{egrep}. @sc{fgrep} is the -same as @samp{grep -F}. - -@node Regular Expressions, Reporting Bugs, Grep Programs, Top -@comment node-name, next, previous, up -@chapter Regular Expressions -@cindex regular expressions - -A @dfn{regular expression} is a pattern that describes a set of strings. -Regular expressions are constructed analogously to arithmetic expressions, -by using various operators to combine smaller expressions. -@sc{grep} understands two different versions of regular expression -syntax: ``basic'' and ``extended''. In GNU @sc{grep}, there is no -difference in available functionality using either syntax. -In other implementations, basic regular expressions are less powerful. -The following description applies to extended regular expressions; -differences for basic regular expressions are summarized afterwards. - -The fundamental building blocks are the regular expressions that match -a single character. Most characters, including all letters and digits, -are regular expressions that match themselves. Any metacharacter -with special meaning may be quoted by preceding it with a backslash. -A list of characters enclosed by @samp{[} and @samp{]} matches any -single character in that list; if the first character of the list is the -caret @samp{^}, then it -matches any character @strong{not} in the list. For example, the regular -expression @samp{[0123456789]} matches any single digit. -A range of @sc{ascii} characters may be specified by giving the first -and last characters, separated by a hyphen. Finally, certain named -classes of characters are predefined. Their names are self explanatory, -and they are : - -@cindex classes of characters -@cindex character classes -@table @samp - -@item [:alnum:] -@opindex alnum -@cindex alphanumeric characters -Any of [:digit:] or [:alpha:] - -@item [:alpha:] -@opindex alpha -@cindex alphabetic characters -Any local-specific or one of the @sc{ascii} letters:@* -@code{a b c d e f g h i j k l m n o p q r s t u v w x y z},@* -@code{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z}. - -@item [:cntrl:] -@opindex cntrl -@cindex control characters -Any of @code{BEL}, @code{BS}, @code{CR}, @code{FF}, @code{HT}, -@code{NL}, or @code{VT}. - -@item [:digit:] -@opindex digit -@cindex digit characters -@cindex numeric characters -Any one of @code{0 1 2 3 4 5 6 7 8 9}. - -@item [:graph:] -@opindex graph -@cindex graphic characters -Anything that is not a @samp{[:alphanum:]} or @samp{[:punct:]}. - -@item [:lower:] -@opindex lower -@cindex lower-case alphabetic characters -Any one of @code{a b c d e f g h i j k l m n o p q r s t u v w x y z}. - -@item [:print:] -@opindex print -@cindex printable characters -Any character from the @samp{[:space:]} class, and any character that is -@strong{not} in the @samp{[:isgraph:]} class. - -@item [:punct:] -@opindex punct -@cindex punctuation characters -Any one of @code{!@: " #% & ' ( ) ; < = > ?@: [ \ ] * + , - .@: / : ^ _ @{ | @}}. - - -@item [:space:] -@opindex space -@cindex space characters -@cindex whitespace characters -Any one of @code{CR FF HT NL VT SPACE}. - -@item [:upper:] -@opindex upper -@cindex upper-case alphabetic characters -Any one of @code{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z}. - -@item [:xdigit:] -@opindex xdigit -@cindex xdigit class -@cindex hexadecimal digits -Any one of @code{a b c d e f A B C D E F 0 1 2 3 4 5 6 7 8 9}. - -@end table -For example, @samp{[[:alnum:]]} means @samp{[0-9A-Za-z]}, except the latter -form is dependent upon the @sc{ascii} character encoding, whereas the -former is portable. (Note that the brackets in these class names are -part of the symbolic names, and must be included in addition to -the brackets delimiting the bracket list). Most metacharacters lose -their special meaning inside lists. To include a literal @samp{]}, place it -first in the list. Similarly, to include a literal @samp{^}, place it anywhere -but first. Finally, to include a literal @samp{-}, place it last. - -The period @samp{.} matches any single character. The symbol @samp{\w} -is a synonym for @samp{[[:alnum:]]} and @samp{\W} is a synonym for -@samp{[^[:alnum]]}. - -The caret @samp{^} and the dollar sign @samp{$} are metacharacters that -respectively match the empty string at the beginning and end -of a line. The symbols @samp{\<} and @samp{\>} respectively match the -empty string at the beginning and end of a word. The symbol -@samp{\b} matches the empty string at the edge of a word, and @samp{\B} -matches the empty string provided it's not at the edge of a word. - -A regular expression may be followed by one of several -repetition operators: - - -@table @samp - -@item ? -@opindex ? -@cindex question mark -@cindex match sub-expression at most once -The preceding item is optional and will be matched at most once. - -@item * -@opindex * -@cindex asterisk -@cindex match sub-expression zero or more times -The preceding item will be matched zero or more times. - -@item + -@opindex + -@cindex plus sign -The preceding item will be matched one or more times. - -@item @{@var{n}@} -@opindex @{n@} -@cindex braces, one argument -@cindex match sub-expression n times -The preceding item is matched exactly @var{n} times. - -@item @{@var{n},@} -@opindex @{n,@} -@cindex braces, second argument omitted -@cindex match sub-expression n or more times -The preceding item is matched n or more times. - -@item @{,@var{m}@} -@opindex @{,m@} -@cindex braces, first argument omitted -@cindex match sub-expression at most m times -The preceding item is optional and is matched at most @var{m} times. - -@item @{@var{n},@var{m}@} -@opindex @{n,m@} -@cindex braces, two arguments -The preceding item is matched at least @var{n} times, but not more than -@var{m} times. - -@end table - -Two regular expressions may be concatenated; the resulting regular -expression matches any string formed by concatenating two substrings -that respectively match the concatenated subexpressions. - -Two regular expressions may be joined by the infix operator @samp{|}; the -resulting regular expression matches any string matching either -subexpression. - -Repetition takes precedence over concatenation, which in turn -takes precedence over alternation. A whole subexpression may be -enclosed in parentheses to override these precedence rules. - -The backreference @samp{\@var{n}}, where @var{n} is a single digit, matches the -substring previously matched by the @var{n}th parenthesized subexpression -of the regular expression. - -@cindex basic regular expressions -In basic regular expressions the metacharacters @samp{?}, @samp{+}, -@samp{@{}, @samp{|}, @samp{(}, and @samp{)} lose their special meaning; -instead use the backslashed versions @samp{\?}, @samp{\+}, @samp{\@{}, -@samp{\|}, @samp{\(}, and @samp{\)}. - -In @sc{egrep} the metacharacter @samp{@{} loses its special meaning; -instead use @samp{\@{}. This not true for @samp{grep -E}. - - -@node Reporting Bugs, Concept Index, Regular Expressions, Top -@comment node-name, next, previous, up -@chapter Reporting bugs - -@cindex Bugs, reporting -Email bug reports to @email{bug-gnu-utils@@gnu.org}. -Be sure to include the word ``grep'' somewhere in the ``Subject:'' field. - -Large repetition counts in the @samp{@{m,n@}} construct may cause -@sc{grep} to use lots of memory. In addition, certain other -obscure regular expressions require exponential time and -space, and may cause grep to run out of memory. -Backreferences are very slow, and may require exponential time. - -@page -@node Concept Index , Index, Reporting Bugs, Top -@comment node-name, next, previous, up -@unnumbered Concept Index - -This is a general index of all issues discussed in this manual, with the -exception of the @sc{grep} commands and command-line options. - -@printindex cp - -@page -@node Index, , Concept Index, Top -@unnumbered Index - -This is an alphabetical list of all @sc{grep} commands and command-line -options. - -@printindex fn - -@contents -@bye diff --git a/gnu/usr.bin/grep/doc/version.texi b/gnu/usr.bin/grep/doc/version.texi deleted file mode 100644 index ace04912de6eb..0000000000000 --- a/gnu/usr.bin/grep/doc/version.texi +++ /dev/null @@ -1,3 +0,0 @@ -@set UPDATED 10 February 1999 -@set EDITION 2.3 -@set VERSION 2.3 diff --git a/gnu/usr.bin/grep/getopt1.c b/gnu/usr.bin/grep/getopt1.c deleted file mode 100644 index a967c30771695..0000000000000 --- a/gnu/usr.bin/grep/getopt1.c +++ /dev/null @@ -1,189 +0,0 @@ -/* getopt_long and getopt_long_only entry points for GNU getopt. - Copyright (C) 1987,88,89,90,91,92,93,94,96,97, 98 Free Software Foundation, Inc. - - This file is part of the GNU C Library. Its master source is NOT part of - the C library, however. The master source lives in /gd/gnu/lib. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If not, - write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include "getopt.h" - -#if !defined (__STDC__) || !__STDC__ -/* This is a separate conditional since some stdc systems - reject `defined (const)'. */ -#ifndef const -#define const -#endif -#endif - -#include <stdio.h> - -/* Comment out all this code if we are using the GNU C Library, and are not - actually compiling the library itself. This code is part of the GNU C - Library, but also included in many other GNU distributions. Compiling - and linking in this code is a waste when using the GNU C library - (especially if it is a shared library). Rather than having every GNU - program understand `configure --with-gnu-libc' and omit the object files, - it is simpler to just do this in the source for each such file. */ - -#define GETOPT_INTERFACE_VERSION 2 -#if !defined (_LIBC) && defined (__GLIBC__) && __GLIBC__ >= 2 -#include <gnu-versions.h> -#if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION -#define ELIDE_CODE -#endif -#endif - -#ifndef ELIDE_CODE - - -/* This needs to come after some library #include - to get __GNU_LIBRARY__ defined. */ -#ifdef __GNU_LIBRARY__ -#include <stdlib.h> -#endif - -#ifndef NULL -#define NULL 0 -#endif - -int -getopt_long (argc, argv, options, long_options, opt_index) - int argc; - char *const *argv; - const char *options; - const struct option *long_options; - int *opt_index; -{ - return _getopt_internal (argc, argv, options, long_options, opt_index, 0); -} - -/* Like getopt_long, but '-' as well as '--' can indicate a long option. - If an option that starts with '-' (not '--') doesn't match a long option, - but does match a short option, it is parsed as a short option - instead. */ - -int -getopt_long_only (argc, argv, options, long_options, opt_index) - int argc; - char *const *argv; - const char *options; - const struct option *long_options; - int *opt_index; -{ - return _getopt_internal (argc, argv, options, long_options, opt_index, 1); -} - - -#endif /* Not ELIDE_CODE. */ - -#ifdef TEST - -#include <stdio.h> - -int -main (argc, argv) - int argc; - char **argv; -{ - int c; - int digit_optind = 0; - - while (1) - { - int this_option_optind = optind ? optind : 1; - int option_index = 0; - static struct option long_options[] = - { - {"add", 1, 0, 0}, - {"append", 0, 0, 0}, - {"delete", 1, 0, 0}, - {"verbose", 0, 0, 0}, - {"create", 0, 0, 0}, - {"file", 1, 0, 0}, - {0, 0, 0, 0} - }; - - c = getopt_long (argc, argv, "abc:d:0123456789", - long_options, &option_index); - if (c == -1) - break; - - switch (c) - { - case 0: - printf (_("option %s"), long_options[option_index].name); - if (optarg) - printf (_(" with arg %s"), optarg); - printf ("\n"); - break; - - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - if (digit_optind != 0 && digit_optind != this_option_optind) - printf (_("digits occur in two different argv-elements.\n")); - digit_optind = this_option_optind; - printf (_("option %c\n"), c); - break; - - case 'a': - printf (_("option a\n")); - break; - - case 'b': - printf (_("option b\n")); - break; - - case 'c': - printf (_("option c with value `%s'\n"), optarg); - break; - - case 'd': - printf (_("option d with value `%s'\n"), optarg); - break; - - case '?': - break; - - default: - printf (_("?? getopt returned character code 0%o ??\n"), c); - } - } - - if (optind < argc) - { - printf (_("non-option ARGV-elements: ")); - while (optind < argc) - printf ("%s ", argv[optind++]); - printf ("\n"); - } - - exit (0); -} - -#endif /* TEST */ diff --git a/gnu/usr.bin/grep/savedir.c b/gnu/usr.bin/grep/savedir.c deleted file mode 100644 index 5a9c339d8cf4f..0000000000000 --- a/gnu/usr.bin/grep/savedir.c +++ /dev/null @@ -1,135 +0,0 @@ -/* savedir.c -- save the list of files in a directory in a string - Copyright (C) 1990, 1997, 1998 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - -/* Written by David MacKenzie <djm@gnu.ai.mit.edu>. */ - -#if HAVE_CONFIG_H -# include <config.h> -#endif - -#include <sys/types.h> - -#if HAVE_UNISTD_H -# include <unistd.h> -#endif - -#if HAVE_DIRENT_H -# include <dirent.h> -# define NAMLEN(dirent) strlen((dirent)->d_name) -#else -# define dirent direct -# define NAMLEN(dirent) (dirent)->d_namlen -# if HAVE_SYS_NDIR_H -# include <sys/ndir.h> -# endif -# if HAVE_SYS_DIR_H -# include <sys/dir.h> -# endif -# if HAVE_NDIR_H -# include <ndir.h> -# endif -#endif - -#ifdef CLOSEDIR_VOID -/* Fake a return value. */ -# define CLOSEDIR(d) (closedir (d), 0) -#else -# define CLOSEDIR(d) closedir (d) -#endif - -#ifdef STDC_HEADERS -# include <stdlib.h> -# include <string.h> -#else -char *malloc (); -char *realloc (); -#endif -#ifndef NULL -# define NULL 0 -#endif - -#ifndef stpcpy -char *stpcpy (); -#endif - -#include "savedir.h" - -/* Return a freshly allocated string containing the filenames - in directory DIR, separated by '\0' characters; - the end is marked by two '\0' characters in a row. - NAME_SIZE is the number of bytes to initially allocate - for the string; it will be enlarged as needed. - Return NULL if DIR cannot be opened or if out of memory. */ - -char * -savedir (dir, name_size) - const char *dir; - unsigned int name_size; -{ - DIR *dirp; - struct dirent *dp; - char *name_space; - char *namep; - - dirp = opendir (dir); - if (dirp == NULL) - return NULL; - - name_space = (char *) malloc (name_size); - if (name_space == NULL) - { - closedir (dirp); - return NULL; - } - namep = name_space; - - while ((dp = readdir (dirp)) != NULL) - { - /* Skip "." and ".." (some NFS filesystems' directories lack them). */ - if (dp->d_name[0] != '.' - || (dp->d_name[1] != '\0' - && (dp->d_name[1] != '.' || dp->d_name[2] != '\0'))) - { - unsigned size_needed = (namep - name_space) + NAMLEN (dp) + 2; - - if (size_needed > name_size) - { - char *new_name_space; - - while (size_needed > name_size) - name_size += 1024; - - new_name_space = realloc (name_space, name_size); - if (new_name_space == NULL) - { - closedir (dirp); - return NULL; - } - namep += new_name_space - name_space; - name_space = new_name_space; - } - namep = stpcpy (namep, dp->d_name) + 1; - } - } - *namep = '\0'; - if (CLOSEDIR (dirp)) - { - free (name_space); - return NULL; - } - return name_space; -} diff --git a/gnu/usr.bin/grep/savedir.h b/gnu/usr.bin/grep/savedir.h deleted file mode 100644 index 033e56752d06f..0000000000000 --- a/gnu/usr.bin/grep/savedir.h +++ /dev/null @@ -1,15 +0,0 @@ -#if !defined SAVEDIR_H_ -# define SAVEDIR_H_ - -# ifndef PARAMS -# if defined PROTOTYPES || (defined __STDC__ && __STDC__) -# define PARAMS(Args) Args -# else -# define PARAMS(Args) () -# endif -# endif - -char * -savedir PARAMS ((const char *dir, unsigned int name_size)); - -#endif diff --git a/gnu/usr.bin/grep/stpcpy.c b/gnu/usr.bin/grep/stpcpy.c deleted file mode 100644 index 380e65f7dcc23..0000000000000 --- a/gnu/usr.bin/grep/stpcpy.c +++ /dev/null @@ -1,52 +0,0 @@ -/* stpcpy.c -- copy a string and return pointer to end of new string - Copyright (C) 1992, 1995, 1997, 1998 Free Software Foundation, Inc. - - NOTE: The canonical source of this file is maintained with the GNU C Library. - Bugs can be reported to bug-glibc@prep.ai.mit.edu. - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, - USA. */ - -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - -#include <string.h> - -#undef __stpcpy -#undef stpcpy - -#ifndef weak_alias -# define __stpcpy stpcpy -#endif - -/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */ -char * -__stpcpy (dest, src) - char *dest; - const char *src; -{ - register char *d = dest; - register const char *s = src; - - do - *d++ = *s; - while (*s++ != '\0'); - - return d - 1; -} -#ifdef weak_alias -weak_alias (__stpcpy, stpcpy) -#endif diff --git a/gnu/usr.bin/grep/system.h b/gnu/usr.bin/grep/system.h deleted file mode 100644 index be01791302467..0000000000000 --- a/gnu/usr.bin/grep/system.h +++ /dev/null @@ -1,188 +0,0 @@ -/* Portability cruft. Include after config.h and sys/types.h. - Copyright (C) 1996, 1998 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ - -#undef PARAMS -#if defined (__STDC__) && __STDC__ -# ifndef _PTR_T -# define _PTR_T - typedef void * ptr_t; -# endif -# define PARAMS(x) x -#else -# ifndef _PTR_T -# define _PTR_T - typedef char * ptr_t; -# endif -# define PARAMS(x) () -#endif - -#ifdef HAVE_UNISTD_H -# include <fcntl.h> -# include <unistd.h> -#else -# define O_RDONLY 0 -int open(), read(), close(); -#endif - -#include <errno.h> -#ifndef errno -extern int errno; -#endif - -#ifndef HAVE_STRERROR -extern int sys_nerr; -extern char *sys_errlist[]; -# define strerror(E) (0 <= (E) && (E) < sys_nerr ? _(sys_errlist[E]) : _("Unknown system error")) -#endif - -/* Some operating systems treat text and binary files differently. */ -#if O_BINARY -# include <io.h> -# ifdef HAVE_SETMODE -# define SET_BINARY(fd) setmode (fd, O_BINARY) -# else -# define SET_BINARY(fd) _setmode (fd, O_BINARY) -# endif -#else -# ifndef O_BINARY -# define O_BINARY 0 -# define SET_BINARY(fd) (void)0 -# endif -#endif - -#ifdef HAVE_DOS_FILE_NAMES -# define IS_SLASH(c) ((c) == '/' || (c) == '\\') -# define FILESYSTEM_PREFIX_LEN(f) ((f)[0] && (f)[1] == ':' ? 2 : 0) -#endif - -#ifndef IS_SLASH -# define IS_SLASH(c) ((c) == '/') -#endif - -#ifndef FILESYSTEM_PREFIX_LEN -# define FILESYSTEM_PREFIX_LEN(f) 0 -#endif - -/* This assumes _WIN32, like DJGPP, has D_OK. Does it? In what header? */ -#ifdef D_OK -# ifdef EISDIR -# define is_EISDIR(e, f) \ - ((e) == EISDIR \ - || ((e) == EACCES && access (f, D_OK) == 0 && ((e) = EISDIR, 1))) -# else -# define is_EISDIR(e, f) ((e) == EACCES && access (f, D_OK) == 0) -# endif -#endif - -#ifndef is_EISDIR -# ifdef EISDIR -# define is_EISDIR(e, f) ((e) == EISDIR) -# else -# define is_EISDIR(e, f) 0 -# endif -#endif - -#if STAT_MACROS_BROKEN -# undef S_ISDIR -#endif -#if !defined(S_ISDIR) && defined(S_IFDIR) -# define S_ISDIR(Mode) (((Mode) & S_IFMT) == S_IFDIR) -#endif - -#ifdef STDC_HEADERS -# include <stdlib.h> -#else -ptr_t malloc(), realloc(), calloc(); -void free(); -#endif - -#if __STDC__ -# include <stddef.h> -#endif -#ifdef STDC_HEADERS -# include <limits.h> -#endif -#ifndef CHAR_BIT -# define CHAR_BIT 8 -#endif -#ifndef INT_MAX -# define INT_MAX 2147483647 -#endif -#ifndef UCHAR_MAX -# define UCHAR_MAX 255 -#endif - -#if !defined(STDC_HEADERS) && defined(HAVE_STRING_H) && defined(HAVE_MEMORY_H) -# include <memory.h> -#endif -#if defined(STDC_HEADERS) || defined(HAVE_STRING_H) -# include <string.h> -#else -# include <strings.h> -# undef strchr -# define strchr index -# undef strrchr -# define strrchr rindex -# undef memcpy -# define memcpy(d, s, n) bcopy((s), (d), (n)) -#endif -#ifndef HAVE_MEMCHR -ptr_t memchr(); -#endif - -#include <ctype.h> - -#ifndef isgraph -# define isgraph(C) (isprint(C) && !isspace(C)) -#endif - -#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) -# define IN_CTYPE_DOMAIN(c) 1 -#else -# define IN_CTYPE_DOMAIN(c) isascii(c) -#endif - -#define ISALPHA(C) (IN_CTYPE_DOMAIN (C) && isalpha (C)) -#define ISUPPER(C) (IN_CTYPE_DOMAIN (C) && isupper (C)) -#define ISLOWER(C) (IN_CTYPE_DOMAIN (C) && islower (C)) -#define ISDIGIT(C) (IN_CTYPE_DOMAIN (C) && isdigit (C)) -#define ISXDIGIT(C) (IN_CTYPE_DOMAIN (C) && isxdigit (C)) -#define ISSPACE(C) (IN_CTYPE_DOMAIN (C) && isspace (C)) -#define ISPUNCT(C) (IN_CTYPE_DOMAIN (C) && ispunct (C)) -#define ISALNUM(C) (IN_CTYPE_DOMAIN (C) && isalnum (C)) -#define ISPRINT(C) (IN_CTYPE_DOMAIN (C) && isprint (C)) -#define ISGRAPH(C) (IN_CTYPE_DOMAIN (C) && isgraph (C)) -#define ISCNTRL(C) (IN_CTYPE_DOMAIN (C) && iscntrl (C)) - -#define TOLOWER(C) (ISUPPER(C) ? tolower(C) : (C)) - -#if ENABLE_NLS -# include <libintl.h> -# define _(String) gettext (String) -#else -# define _(String) String -#endif -#define N_(String) String - -#if HAVE_SETLOCALE -# include <locale.h> -#endif - -#ifndef initialize_main -#define initialize_main(argcp, argvp) -#endif diff --git a/gnu/usr.bin/grep/tests/bre.awk b/gnu/usr.bin/grep/tests/bre.awk deleted file mode 100644 index 39730713607a3..0000000000000 --- a/gnu/usr.bin/grep/tests/bre.awk +++ /dev/null @@ -1,26 +0,0 @@ -BEGIN { - FS="@"; - n = 0; - printf ("# Generated Spencer BRE Test\n"); - printf ("failures=0\n"); -} - -$0 ~ /^#/ { next; } - -NF == 3 { - printf ("echo '%s' | ${GREP} -e '%s' > /dev/null 2>&1\n",$3, $2); - printf ("if test $? -ne %s ; then\n", $1); - printf ("\techo Spencer bre test \\#%d failed\n", ++n); - printf ("\tfailures=1\n"); - printf ("fi\n"); -} - -NF == 4 { -#don't alarm users -# printf ("echo '%s' | ${GREP} -e '%s' > /dev/null 2>&1\n",$3, $2); -# printf ("if test $? -ne %s ; then\n", $1); -# printf ("\techo Expected non conformance \\#%d ... continuing\n", ++n); -# printf ("fi\n"); -} - -END { printf ("exit $failures\n"); } diff --git a/gnu/usr.bin/grep/tests/bre.sh b/gnu/usr.bin/grep/tests/bre.sh deleted file mode 100755 index eecdd3ee22738..0000000000000 --- a/gnu/usr.bin/grep/tests/bre.sh +++ /dev/null @@ -1,13 +0,0 @@ -#! /bin/sh -# Regression test for GNU grep. - -: ${srcdir=.} - -failures=0 - -# . . . and the following by Henry Spencer. - -${AWK-awk} -f $srcdir/bre.awk $srcdir/bre.tests > bre.script - -sh bre.script && exit $failures -exit 1 diff --git a/gnu/usr.bin/grep/tests/bre.tests b/gnu/usr.bin/grep/tests/bre.tests deleted file mode 100644 index a896377e34c52..0000000000000 --- a/gnu/usr.bin/grep/tests/bre.tests +++ /dev/null @@ -1,62 +0,0 @@ -0@a\(b\)c@abc -0@a(@a( -2@a\(@EPAREN -2@a\(b@EPAREN -0@a(b@a(b -0@a)@a) -2@a\)@EPAREN -2@\)@EPAREN -0@a\(\)b@ab -0@a^b@a^b@TO CORRECT -0@a$b@a$b -0@\($\)\(^\)@@ -0@a*\(^b$\)c*@b -0@|@| -0@*@* -0@\(\)@abc -2@\(\{1\}a\)@BADRPT@TO CORRECT -0@^*@* -2@^\{1\}@BADRPT@TO CORRECT -2@\{@BADRPT -1@a\(b*\)c\1d@abbcbd -1@a\(b*\)c\1d@abbcbbbd -1@^\(.\)\1@abc -0@a\(\([bc]\)\2\)*d@abbccd -1@a\(\([bc]\)\2\)*d@abbcbd -0@a\(\(b\)*\2\)*d@abbbd -0@\(a\)\1bcd@aabcd -0@\(a\)\1bc*d@aabcd -0@\(a\)\1bc*d@aabd -0@\(a\)\1bc*d@aabcccd -0@\(a\)\1bc*[ce]d@aabcccd@TO CORRECT -0@^\(a\)\1b\(c\)*cd$@aabcccd -0@a\(*\)b@a*b -0@a\(**\)b@ab -2@a\(***\)b@BADRPT@TO CORRECT -0@*a@*a -0@**a@a -2@***a@BADRPT@TO CORRECT -0@a\{1\}b@ab -0@a\{1,\}b@ab -0@a\{1,2\}b@aab -2@a\{1@EBRACE -2@a\{1a@EBRACE -2@a\{1a\}@BADBR -2@a\{,2\}@BADBR -2@a\{,\}@BADBR -2@a\{1,x\}@BADBR -2@a\{1,x@EBRACE -2@a\{300\}@BADBR@TO CORRECT -2@a\{1,0\}@BADBR -0@ab\{0,0\}c@abcac -0@ab\{0,1\}c@abcac -0@ab\{0,3\}c@abbcac -0@ab\{1,1\}c@acabc -0@ab\{1,3\}c@acabc -0@ab\{2,2\}c@abcabbc -0@ab\{2,4\}c@abcabbc -2@a\{1\}\{1\}@BADRPT@TO CORRECT -2@a*\{1\}@BADRPT@TO CORRECT -2@a\{1\}*@BADRPT@TO CORRECT -1@a\(b\)?c\1d@acd -0@-\{0,1\}[0-9]*$@-5 diff --git a/gnu/usr.bin/grep/tests/empty.sh b/gnu/usr.bin/grep/tests/empty.sh deleted file mode 100755 index 8c751966f5f15..0000000000000 --- a/gnu/usr.bin/grep/tests/empty.sh +++ /dev/null @@ -1,30 +0,0 @@ -#! /bin/sh -# test that the empty file means no pattern -# and an empty pattern means match all. - -: ${srcdir=.} - -failures=0 - -# should return 0 found a match -echo "abcd" | ${GREP} -E -e '' > /dev/null 2>&1 -if test $? -ne 0 ; then - echo "Status: Wrong status code, test \#1 failed" - failures=1 -fi - -# should return 1 found no match -echo "abcd" | ${GREP} -E -f /dev/null > /dev/null 2>&1 -if test $? -ne 1 ; then - echo "Status: Wrong status code, test \#2 failed" - failures=1 -fi - -# should return 0 found a match -echo "abcd" | ${GREP} -E -f /dev/null -e "abc" > /dev/null 2>&1 -if test $? -ne 0 ; then - echo "Status: Wrong status code, test \#3 failed" - failures=1 -fi - -exit $failures diff --git a/gnu/usr.bin/grep/tests/ere.awk b/gnu/usr.bin/grep/tests/ere.awk deleted file mode 100644 index c014fe9afa4e0..0000000000000 --- a/gnu/usr.bin/grep/tests/ere.awk +++ /dev/null @@ -1,31 +0,0 @@ -BEGIN { - FS="@"; - n = 0; - printf ("# Generated Spencer ERE Test\n"); - printf ("failures=0\n"); -} - -$0 ~ /^#/ { next; } - -NF == 3 { - printf ("echo '%s' | ${GREP} -E -e '%s' > /dev/null 2>&1\n",$3, $2); - printf ("if test $? -ne %s ; then\n", $1); - printf ("\techo Spencer ere test \\#%d failed\n", ++n); - printf ("\tfailures=1\n"); - printf ("fi\n"); -} - -NF == 4 { -# don't alarm the user for now -# printf ("echo '%s'|${GREP} -E -e '%s' > /dev/null 2>&1\n",$3, $2); -# printf ("if test $? -ne %s ; then\n", $1); -# printf ("\techo Expected non conformance \\#%d ... continuing\n", ++n); -# printf ("fi\n"); -} - -NF == 5 { -# don't alarm the user for now - next; -} - -END { printf ("exit $failures\n"); } diff --git a/gnu/usr.bin/grep/tests/ere.sh b/gnu/usr.bin/grep/tests/ere.sh deleted file mode 100755 index 5bf1695283626..0000000000000 --- a/gnu/usr.bin/grep/tests/ere.sh +++ /dev/null @@ -1,13 +0,0 @@ -#! /bin/sh -# Regression test for GNU grep. - -: ${srcdir=.} - -failures=0 - -# . . . and the following by Henry Spencer. - -${AWK-awk} -f $srcdir/ere.awk $srcdir/ere.tests > ere.script - -sh ere.script && exit $failures -exit 1 diff --git a/gnu/usr.bin/grep/tests/ere.tests b/gnu/usr.bin/grep/tests/ere.tests deleted file mode 100644 index 7d37c4e1ac77f..0000000000000 --- a/gnu/usr.bin/grep/tests/ere.tests +++ /dev/null @@ -1,215 +0,0 @@ -0@a@a -0@abc@abc -0@abc|de@abc -0@a|b|c@abc -0@a(b)c@abc -2@a(@EPAREN -0@a\(@a( -2@a(b@EPAREN -0@a)@a)@POSIX BOTCH -0@)@)@POSIX BOTCH -0@a()b@ab -0@^abc$@abc -1@a^b@a^b -1@a$b@a$b -0@^@abc -0@$@abc -0@^$@@ -0@$^@@ -0@^^@@ -0@$$@@ -0@a*(^b$)c*@b -2@|@EMPTY@NO ALTERNATION -2@*@BADRPT@TO CORRECT -2@+@BADRPT@TO CORRECT -2@?@BADRPT@TO CORRECT -1@&C@PASS -0@()@abc -2@a||b@EMPTY@NO ALTERNATION -2@|ab@EMPTY@NO ALTERNATION -2@ab|@EMPTY@NO ALTERNATION -2@(|a)b@EMPTY@NO ALTERNATION -2@(a|)b@EMPTY@NO ALTERNATION -2@(*a)@BADRPT@TO CORRECT -2@(+a)@BADRPT@TO CORRECT -2@(?a)@BADRPT@TO CORRECT -2@({1}a)@BADRPT@TO CORRECT -2@(a|*b)@BADRPT@NO ALTERNATION -2@(a|+b)@BADRPT@NO ALTERNATION -2@(a|?b)@BADRPT@NO ALTERNATION -2@(a|{1}b)@BADRPT@NO ALTERNATION -2@^*@BADRPT@TO CORRECT -2@^+@BADRPT@TO CORRECT -2@^?@BADRPT@TO CORRECT -2@^{1}@BADRPT@TO CORRECT -0@a.c@abc -0@a[bc]d@abd -0@a\*c@a*c -0@a\\b@a\b@TO CORRECT -0@a\\\*b@a\*b -0@a\bc@abc@TO CORRECT -2@a\@EESCAPE -0@a\\bc@a\bc@TO CORRECT -0@a\[b@a[b -2@a[b@EBRACK -0@a$@a -1@a$@a$ -1@a\$@a -0@a\$@a$ -1@a\\$@a -1@a\\$@a$ -1@a\\$@a\$ -0@a\\$@a\ -0@ab*c@abc -0@ab+c@abc -0@ab?c@abc -0@{@{@TO CORRECT -0@{abc@{abc@TO CORRECT -2@{1@BADRPT -2@{1}@BADRPT@TO CORRECT -0@a{b@a{b@TO CORRECT -0@a{1}b@ab -0@a{1,}b@ab -0@a{1,2}b@aab -2@a{1@EBRACE -2@a{1a@EBRACE -2@a{1a}@BADBR -0@a{,2}@a{,2} -0@a{,}@a{,} -2@a{1,x}@BADBR -2@a{1,x@EBRACE@TO CORRECT -2@a{300}@BADBR@TO CORRECT -2@a{1,0}@BADBR@TO CORRECT -0@ab{0,0}c@abcac -0@ab{0,1}c@abcac -0@ab{0,3}c@abbcac -0@ab{1,1}c@acabc -0@ab{1,3}c@acabc -0@ab{2,2}c@abcabbc -0@ab{2,4}c@abcabbc -2@a**@BADRPT@TO CORRECT -2@a++@BADRPT@TO CORRECT -2@a??@BADRPT@TO CORRECT -2@a*+@BADRPT@TO CORRECT -2@a*?@BADRPT@TO CORRECT -2@a+*@BADRPT@TO CORRECT -2@a+?@BADRPT@TO CORRECT -2@a?*@BADRPT@TO CORRECT -2@a?+@BADRPT@TO CORRECT -2@a{1}{1}@BADRPT@TO CORRECT -2@a*{1}@BADRPT@TO CORRECT -2@a+{1}@BADRPT@TO CORRECT -2@a?{1}@BADRPT@TO CORRECT -2@a{1}*@BADRPT@TO CORRECT -2@a{1}+@BADRPT@TO CORRECT -2@a{1}?@BADRPT@TO CORRECT -0@a*{b}@a{b}@TO CORRECT -0@a[b]c@abc -0@a[ab]c@abc -0@a[^ab]c@adc -0@a[]b]c@a]c -0@a[[b]c@a[c -0@a[-b]c@a-c -0@a[^]b]c@adc -0@a[^-b]c@adc -0@a[b-]c@a-c -2@a[b@EBRACK -2@a[]@EBRACK -0@a[1-3]c@a2c -2@a[3-1]c@ERANGE@TO CORRECT -2@a[1-3-5]c@ERANGE@TO CORRECT -0@a[[.-.]--]c@a-c@TO CORRECT -2@a[1-@ERANGE -2@a[[.@EBRACK -2@a[[.x@EBRACK -2@a[[.x.@EBRACK -2@a[[.x.]@EBRACK@TO CORRECT -0@a[[.x.]]@ax@TO CORRECT -2@a[[.x,.]]@ECOLLATE@TO CORRECT -0@a[[.one.]]b@a1b@TO CORRECT -2@a[[.notdef.]]b@ECOLLATE@TO CORRECT -0@a[[.].]]b@a]b@TO CORRECT -0@a[[:alpha:]]c@abc -2@a[[:notdef:]]c@ECTYPE -2@a[[:@EBRACK -2@a[[:alpha@EBRACK -2@a[[:alpha:]@EBRACK -2@a[[:alpha,:]@ECTYPE -2@a[[:]:]]b@ECTYPE -2@a[[:-:]]b@ECTYPE -2@a[[:alph:]]@ECTYPE -2@a[[:alphabet:]]@ECTYPE -0@[[:digit:]]+@a019b -0@[[:lower:]]+@AabC -0@[[:upper:]]+@aBCd -0@[[:xdigit:]]+@p0f3Cq -0@a[[=b=]]c@abc@TO CORRECT -2@a[[=@EBRACK -2@a[[=b@EBRACK -2@a[[=b=@EBRACK -2@a[[=b=]@EBRACK@TO CORRECT -2@a[[=b,=]]@ECOLLATE@TO CORRECT -0@a[[=one=]]b@a1b@TO CORRECT -0@a(((b)))c@abc -0@a(b|(c))d@abd -0@a(b*|c)d@abbd -0@a[ab]{20}@aaaaabaaaabaaaabaaaab -0@a[ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab]@aaaaabaaaabaaaabaaaab -0@a[ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab](wee|week)(knights|night)@aaaaabaaaabaaaabaaaabweeknights -0@12345678901234567890123456789@a12345678901234567890123456789b -0@123456789012345678901234567890@a123456789012345678901234567890b -0@1234567890123456789012345678901@a1234567890123456789012345678901b -0@12345678901234567890123456789012@a12345678901234567890123456789012b -0@123456789012345678901234567890123@a123456789012345678901234567890123b -0@1234567890123456789012345678901234567890123456789012345678901234567890@a1234567890123456789012345678901234567890123456789012345678901234567890b -0@[ab][cd][ef][gh][ij][kl][mn]@xacegikmoq -0@[ab][cd][ef][gh][ij][kl][mn][op]@xacegikmoq -0@[ab][cd][ef][gh][ij][kl][mn][op][qr]@xacegikmoqy -0@[ab][cd][ef][gh][ij][kl][mn][op][q]@xacegikmoqy -0@abc@xabcy -0@aBc@Abc@TO CORRECT -0@a[Bc]*d@abBCcd@TO CORRECT -0@0[[:upper:]]1@0a1@TO CORRECT -0@0[[:lower:]]1@0A1@TO CORRECT -1@a[^b]c@abc -1@a[^b]c@aBc@TO CORRECT -0@a[^b]c@adc -0@[a]b[c]@abc -0@[a]b[a]@aba -0@[abc]b[abc]@abc -0@[abc]b[abd]@abd -0@a(b?c)+d@accd -0@(wee|week)(knights|night)@weeknights -0@(we|wee|week|frob)(knights|night|day)@weeknights -0@a[bc]d@xyzaaabcaababdacd -0@a[ab]c@aaabc -0@a*@b -0@/\*.*\*/@/*x*/ -0@/\*.*\*/@/*x*/y/*z*/ -0@/\*([^*]|\*[^/])*\*/@/*x*/ -0@/\*([^*]|\*[^/])*\*/@/*x*/y/*z*/ -0@/\*([^*]|\*[^/])*\*/@/*x**/y/*z*/ -0@/\*([^*]|\*+[^*/])*\*+/@/*x*/ -0@/\*([^*]|\*+[^*/])*\*+/@/*x*/y/*z*/ -0@/\*([^*]|\*+[^*/])*\*+/@/*x**/y/*z*/ -0@/\*([^*]|\*+[^*/])*\*+/@/*x****/y/*z*/ -0@/\*([^*]|\*+[^*/])*\*+/@/*x**x*/y/*z*/ -0@/\*([^*]|\*+[^*/])*\*+/@/*x***x/y/*z*/ -0@aZb@a@TO CORRECT -0@[[:<:]]a@a@TO CORRECT -1@[[:<:]]a@ba@TO CORRECT -0@[[:<:]]a@-a@TO CORRECT -0@a[[:>:]]@a@TO CORRECT -1@a[[:>:]]@ab@TO CORRECT -0@a[[:>:]]@a-@TO CORRECT -0@[[:<:]]a.c[[:>:]]@axcd-dayc-dazce-abc@TO CORRECT -0@[[:<:]]a.c[[:>:]]@axcd-dayc-dazce-abc-q@TO CORRECT -0@[[:<:]]a.c[[:>:]]@axc-dayc-dazce-abc@TO CORRECT -0@[[:<:]]b.c[[:>:]]@a_bxc-byc_d-bzc-q@TO CORRECT -0@[[:<:]].x..[[:>:]]@y_xa_-_xb_y-_xc_-axdc@TO CORRECT -1@[[:<:]]a_b[[:>:]]@x_a_b@TO CORRECT -0@(A[1])|(A[2])|(A[3])|(A[4])|(A[5])|(A[6])|(A[7])|(A[8])|(A[9])|(A[A])@A1 -0@abcdefghijklmnop@abcdefghijklmnop -0@abcdefghijklmnopqrstuv@abcdefghijklmnopqrstuv -0@CC[13]1|a{21}[23][EO][123][Es][12]a{15}aa[34][EW]aaaaaaa[X]a@CC11 -0@a?b@ab diff --git a/gnu/usr.bin/grep/tests/khadafy.sh b/gnu/usr.bin/grep/tests/khadafy.sh deleted file mode 100755 index 141b3d8161c69..0000000000000 --- a/gnu/usr.bin/grep/tests/khadafy.sh +++ /dev/null @@ -1,20 +0,0 @@ -#! /bin/sh -# Regression test for GNU grep. - -: ${srcdir=.} -: ${GREP=../src/grep} - -failures=0 - -# The Khadafy test is brought to you by Scott Anderson . . . - -${GREP} -E -f $srcdir/khadafy.regexp $srcdir/khadafy.lines > khadafy.out -if cmp $srcdir/khadafy.lines khadafy.out -then - : -else - echo Khadafy test failed -- output left on khadafy.out - failures=1 -fi - -exit $failures diff --git a/gnu/usr.bin/grep/tests/options.sh b/gnu/usr.bin/grep/tests/options.sh deleted file mode 100755 index 3415018561aaa..0000000000000 --- a/gnu/usr.bin/grep/tests/options.sh +++ /dev/null @@ -1,36 +0,0 @@ -#! /bin/sh -# Test for POSIX.2 options for grep -# -# grep [ -E| -F][ -c| -l| -q ][-insvx] -e pattern_list -# [-f pattern_file] ... [file. ..] -# grep [ -E| -F][ -c| -l| -q ][-insvx][-e pattern_list] -# -f pattern_file ... [file ...] -# grep [ -E| -F][ -c| -l| -q ][-insvx] pattern_list [file...] -# - -: ${srcdir=.} - -failures=0 - -# checking for -E extended regex -echo "abababccccccd" | ${GREP} -E -e 'c{3}' > /dev/null 2>&1 -if test $? -ne 0 ; then - echo "Options: Wrong status code, test \#1 failed" - failures=1 -fi - -# checking for basic regex -echo "abababccccccd" | ${GREP} -G -e 'c\{3\}' > /dev/null 2>&1 -if test $? -ne 0 ; then - echo "Options: Wrong status code, test \#2 failed" - failures=1 -fi - -# checking for fixed string -echo "abababccccccd" | ${GREP} -F -e 'c\{3\}' > /dev/null 2>&1 -if test $? -ne 1 ; then - echo "Options: Wrong status code, test \#3 failed" - failures=1 -fi - -exit $failures diff --git a/gnu/usr.bin/grep/tests/spencer1.awk b/gnu/usr.bin/grep/tests/spencer1.awk deleted file mode 100644 index b66b8f5f665db..0000000000000 --- a/gnu/usr.bin/grep/tests/spencer1.awk +++ /dev/null @@ -1,14 +0,0 @@ -BEGIN { - FS = "@"; - printf ("failures=0\n"); -} - -$0 !~ /^#/ && NF = 3 { - printf ("echo '%s'|${GREP} -E -e '%s' > /dev/null 2>&1\n",$3, $2); - printf ("if test $? -ne %s ; then\n", $1); - printf ("\techo Spencer test \\#%d failed\n", ++n); - printf ("\tfailures=1\n"); - printf ("fi\n"); -} - -END { printf ("exit $failures\n"); } diff --git a/gnu/usr.bin/grep/tests/spencer1.sh b/gnu/usr.bin/grep/tests/spencer1.sh deleted file mode 100755 index f09b3fa974b68..0000000000000 --- a/gnu/usr.bin/grep/tests/spencer1.sh +++ /dev/null @@ -1,13 +0,0 @@ -#! /bin/sh -# Regression test for GNU grep. - -: ${srcdir=.} - -failures=0 - -# . . . and the following by Henry Spencer. - -${AWK-awk} -f $srcdir/spencer1.awk $srcdir/spencer1.tests > spencer1.script - -sh spencer1.script && exit $failures -exit 1 diff --git a/gnu/usr.bin/grep/tests/spencer1.tests b/gnu/usr.bin/grep/tests/spencer1.tests deleted file mode 100644 index 2a60f00c1412a..0000000000000 --- a/gnu/usr.bin/grep/tests/spencer1.tests +++ /dev/null @@ -1,122 +0,0 @@ -0@abc@abc -1@abc@xbc -1@abc@axc -1@abc@abx -0@abc@xabcy -0@abc@ababc -0@ab*c@abc -0@ab*bc@abc -0@ab*bc@abbc -0@ab*bc@abbbbc -0@ab+bc@abbc -1@ab+bc@abc -1@ab+bc@abq -0@ab+bc@abbbbc -0@ab?bc@abbc -0@ab?bc@abc -1@ab?bc@abbbbc -0@ab?c@abc -0@^abc$@abc -1@^abc$@abcc -0@^abc@abcc -1@^abc$@aabc -0@abc$@aabc -0@^@abc -0@$@abc -0@a.c@abc -0@a.c@axc -0@a.*c@axyzc -1@a.*c@axyzd -1@a[bc]d@abc -0@a[bc]d@abd -1@a[b-d]e@abd -0@a[b-d]e@ace -0@a[b-d]@aac -0@a[-b]@a- -0@a[b-]@a- -1@a[b-a]@- -2@a[]b@- -2@a[@- -0@a]@a] -0@a[]]b@a]b -0@a[^bc]d@aed -1@a[^bc]d@abd -0@a[^-b]c@adc -1@a[^-b]c@a-c -1@a[^]b]c@a]c -0@a[^]b]c@adc -0@ab|cd@abc -0@ab|cd@abcd -0@()ef@def -0@()*@- -1@*a@- -0@^*@- -0@$*@- -1@(*)b@- -1@$b@b -2@a\@- -0@a\(b@a(b -0@a\(*b@ab -0@a\(*b@a((b -1@a\x@a\x -2@abc)@- -2@(abc@- -0@((a))@abc -0@(a)b(c)@abc -0@a+b+c@aabbabc -0@a**@- -0@a*?@- -0@(a*)*@- -0@(a*)+@- -0@(a|)*@- -0@(a*|b)*@- -0@(a+|b)*@ab -0@(a+|b)+@ab -0@(a+|b)?@ab -0@[^ab]*@cde -0@(^)*@- -0@(ab|)*@- -2@)(@- -1@abc@ -1@abc@ -0@a*@ -0@([abc])*d@abbbcd -0@([abc])*bcd@abcd -0@a|b|c|d|e@e -0@(a|b|c|d|e)f@ef -0@((a*|b))*@- -0@abcd*efg@abcdefg -0@ab*@xabyabbbz -0@ab*@xayabbbz -0@(ab|cd)e@abcde -0@[abhgefdc]ij@hij -1@^(ab|cd)e@abcde -0@(abc|)ef@abcdef -0@(a|b)c*d@abcd -0@(ab|ab*)bc@abc -0@a([bc]*)c*@abc -0@a([bc]*)(c*d)@abcd -0@a([bc]+)(c*d)@abcd -0@a([bc]*)(c+d)@abcd -0@a[bcd]*dcdcde@adcdcde -1@a[bcd]+dcdcde@adcdcde -0@(ab|a)b*c@abc -0@((a)(b)c)(d)@abcd -0@[A-Za-z_][A-Za-z0-9_]*@alpha -0@^a(bc+|b[eh])g|.h$@abh -0@(bc+d$|ef*g.|h?i(j|k))@effgz -0@(bc+d$|ef*g.|h?i(j|k))@ij -1@(bc+d$|ef*g.|h?i(j|k))@effg -1@(bc+d$|ef*g.|h?i(j|k))@bcdd -0@(bc+d$|ef*g.|h?i(j|k))@reffgz -1@((((((((((a))))))))))@- -0@(((((((((a)))))))))@a -1@multiple words of text@uh-uh -0@multiple words@multiple words, yeah -0@(.*)c(.*)@abcde -1@\((.*),@(.*)\) -1@[k]@ab -0@abcd@abcd -0@a(bc)d@abcd -0@a[-]?c@ac -0@(....).*\1@beriberi diff --git a/gnu/usr.bin/grep/tests/status.sh b/gnu/usr.bin/grep/tests/status.sh deleted file mode 100755 index 50fc9126b557c..0000000000000 --- a/gnu/usr.bin/grep/tests/status.sh +++ /dev/null @@ -1,38 +0,0 @@ -#! /bin/sh -# Test for status code for GNU grep. -# status code -# 0 match found -# 1 no match -# 2 file not found - -: ${srcdir=.} - -failures=0 - -# should return 0 found a match -echo "abcd" | ${GREP} -E -e 'abc' > /dev/null 2>&1 -if test $? -ne 0 ; then - echo "Status: Wrong status code, test \#1 failed" - failures=1 -fi - -# should return 1 found no match -echo "abcd" | ${GREP} -E -e 'zbc' > /dev/null 2>&1 -if test $? -ne 1 ; then - echo "Status: Wrong status code, test \#2 failed" - failures=1 -fi - -# the filename MMMMMMMM.MMM should not exist hopefully -# should return 2 file not found -if test -b MMMMMMMM.MMM; then - echo "Please remove MMMMMMMM.MMM to run check" -else - ${GREP} -E -e 'abc' MMMMMMMM.MMM> /dev/null 2>&1 - if test $? -ne 2 ; then - echo "Status: Wrong status code, test \#3 failed" - failures=1 - fi -fi - -exit $failures diff --git a/gnu/usr.bin/grep/tests/warning.sh b/gnu/usr.bin/grep/tests/warning.sh deleted file mode 100755 index d2dc6d5a5ebb2..0000000000000 --- a/gnu/usr.bin/grep/tests/warning.sh +++ /dev/null @@ -1,19 +0,0 @@ -#! /bin/sh -# -# Tell them not to be alarmed. - -: ${srcdir=.} - -failures=0 - -# -cat <<\EOF - -Please, do not be alarmed if some of the tests failed. -Report them to <bug-gnu-utils@gnu.org>, -with the line number, the name of the file, -and grep version number 'grep --version'. -Make sure you have the word grep in the subject. -Thank You. - -EOF |