aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--applets/usage.h1
-rw-r--r--find.c3
-rw-r--r--findutils/find.c3
-rw-r--r--include/usage.h1
-rw-r--r--usage.h1
5 files changed, 9 insertions, 0 deletions
diff --git a/applets/usage.h b/applets/usage.h
index 8ec0170e2..dde3dd146 100644
--- a/applets/usage.h
+++ b/applets/usage.h
@@ -429,6 +429,7 @@
429 "\nEXPRESSION may consist of:\n" \ 429 "\nEXPRESSION may consist of:\n" \
430 "\t-follow\t\tDereference symbolic links.\n" \ 430 "\t-follow\t\tDereference symbolic links.\n" \
431 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \ 431 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \
432 "\t-print\t\tPrint (default and assumed).\n" \
432 USAGE_FIND_TYPE( \ 433 USAGE_FIND_TYPE( \
433 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \ 434 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
434) USAGE_FIND_PERM( \ 435) USAGE_FIND_PERM( \
diff --git a/find.c b/find.c
index 15e693ab9..e814c97b9 100644
--- a/find.c
+++ b/find.c
@@ -143,6 +143,9 @@ int find_main(int argc, char **argv)
143 for (i = firstopt; i < argc; i++) { 143 for (i = firstopt; i < argc; i++) {
144 if (strcmp(argv[i], "-follow") == 0) 144 if (strcmp(argv[i], "-follow") == 0)
145 dereference = TRUE; 145 dereference = TRUE;
146 else if (strcmp(argv[i], "-print") == 0) {
147 ;
148 }
146 else if (strcmp(argv[i], "-name") == 0) { 149 else if (strcmp(argv[i], "-name") == 0) {
147 if (++i == argc) 150 if (++i == argc)
148 error_msg_and_die("option `-name' requires an argument"); 151 error_msg_and_die("option `-name' requires an argument");
diff --git a/findutils/find.c b/findutils/find.c
index 15e693ab9..e814c97b9 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -143,6 +143,9 @@ int find_main(int argc, char **argv)
143 for (i = firstopt; i < argc; i++) { 143 for (i = firstopt; i < argc; i++) {
144 if (strcmp(argv[i], "-follow") == 0) 144 if (strcmp(argv[i], "-follow") == 0)
145 dereference = TRUE; 145 dereference = TRUE;
146 else if (strcmp(argv[i], "-print") == 0) {
147 ;
148 }
146 else if (strcmp(argv[i], "-name") == 0) { 149 else if (strcmp(argv[i], "-name") == 0) {
147 if (++i == argc) 150 if (++i == argc)
148 error_msg_and_die("option `-name' requires an argument"); 151 error_msg_and_die("option `-name' requires an argument");
diff --git a/include/usage.h b/include/usage.h
index 8ec0170e2..dde3dd146 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -429,6 +429,7 @@
429 "\nEXPRESSION may consist of:\n" \ 429 "\nEXPRESSION may consist of:\n" \
430 "\t-follow\t\tDereference symbolic links.\n" \ 430 "\t-follow\t\tDereference symbolic links.\n" \
431 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \ 431 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \
432 "\t-print\t\tPrint (default and assumed).\n" \
432 USAGE_FIND_TYPE( \ 433 USAGE_FIND_TYPE( \
433 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \ 434 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
434) USAGE_FIND_PERM( \ 435) USAGE_FIND_PERM( \
diff --git a/usage.h b/usage.h
index 8ec0170e2..dde3dd146 100644
--- a/usage.h
+++ b/usage.h
@@ -429,6 +429,7 @@
429 "\nEXPRESSION may consist of:\n" \ 429 "\nEXPRESSION may consist of:\n" \
430 "\t-follow\t\tDereference symbolic links.\n" \ 430 "\t-follow\t\tDereference symbolic links.\n" \
431 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \ 431 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \
432 "\t-print\t\tPrint (default and assumed).\n" \
432 USAGE_FIND_TYPE( \ 433 USAGE_FIND_TYPE( \
433 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \ 434 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
434) USAGE_FIND_PERM( \ 435) USAGE_FIND_PERM( \