aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-14 14:24:30 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-14 14:24:30 +0000
commit3a6755f56f811f246934f02182531fb1e8ccc72d (patch)
tree3bcbe0186fd69f665ed3634dc2f990f994ec399f /include
parentc345d8e94589e3c74a9fac40f440affbc359c8d1 (diff)
downloadbusybox-3a6755f56f811f246934f02182531fb1e8ccc72d.tar.gz
grep: add support for -r
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h4
-rw-r--r--include/usage.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 0bcabf17b..901c7e669 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -252,8 +252,8 @@ extern FILE *bb_wfopen(const char *path, const char *mode);
extern FILE *bb_wfopen_input(const char *filename);
extern FILE *xfopen(const char *path, const char *mode);
-extern int bb_fclose_nonstdin(FILE *f);
-extern void bb_fflush_stdout_and_exit(int retval) ATTRIBUTE_NORETURN;
+extern int bb_fclose_nonstdin(FILE *f);
+extern void bb_fflush_stdout_and_exit(int retval) ATTRIBUTE_NORETURN;
extern void xstat(char *filename, struct stat *buf);
extern int xsocket(int domain, int type, int protocol);
diff --git a/include/usage.h b/include/usage.h
index b119c55c1..320294c8a 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -992,7 +992,7 @@ USE_FEATURE_DATE_ISOFMT( \
"\t-H login_host\tLog login_host into the utmp file as the hostname"
#define grep_trivial_usage \
- "[-ihHnqvso" \
+ "[-rihHnqvso" \
USE_FEATURE_GREP_EGREP_ALIAS("E") \
USE_FEATURE_GREP_CONTEXT("ABC") \
"] PATTERN [FILEs...]"
@@ -1001,6 +1001,7 @@ USE_FEATURE_DATE_ISOFMT( \
"Options:\n" \
"\t-H\tprefix output lines with filename where match was found\n" \
"\t-h\tsuppress the prefixing filename on output\n" \
+ "\t-r\trecurse subdirectories\n" \
"\t-i\tignore case distinctions\n" \
"\t-l\tlist names of files that match\n" \
"\t-L\tlist names of files that do not match\n" \