summaryrefslogtreecommitdiff
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 8ec0170..dde3dd1 100644
--- a/applets/usage.h
+++ b/applets/usage.h
@@ -429,6 +429,7 @@
"\nEXPRESSION may consist of:\n" \
"\t-follow\t\tDereference symbolic links.\n" \
"\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \
+ "\t-print\t\tPrint (default and assumed).\n" \
USAGE_FIND_TYPE( \
"\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
) USAGE_FIND_PERM( \
diff --git a/find.c b/find.c
index 15e693a..e814c97 100644
--- a/find.c
+++ b/find.c
@@ -143,6 +143,9 @@ int find_main(int argc, char **argv)
for (i = firstopt; i < argc; i++) {
if (strcmp(argv[i], "-follow") == 0)
dereference = TRUE;
+ else if (strcmp(argv[i], "-print") == 0) {
+ ;
+ }
else if (strcmp(argv[i], "-name") == 0) {
if (++i == argc)
error_msg_and_die("option `-name' requires an argument");
diff --git a/findutils/find.c b/findutils/find.c
index 15e693a..e814c97 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -143,6 +143,9 @@ int find_main(int argc, char **argv)
for (i = firstopt; i < argc; i++) {
if (strcmp(argv[i], "-follow") == 0)
dereference = TRUE;
+ else if (strcmp(argv[i], "-print") == 0) {
+ ;
+ }
else if (strcmp(argv[i], "-name") == 0) {
if (++i == argc)
error_msg_and_die("option `-name' requires an argument");
diff --git a/include/usage.h b/include/usage.h
index 8ec0170..dde3dd1 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -429,6 +429,7 @@
"\nEXPRESSION may consist of:\n" \
"\t-follow\t\tDereference symbolic links.\n" \
"\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \
+ "\t-print\t\tPrint (default and assumed).\n" \
USAGE_FIND_TYPE( \
"\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
) USAGE_FIND_PERM( \
diff --git a/usage.h b/usage.h
index 8ec0170..dde3dd1 100644
--- a/usage.h
+++ b/usage.h
@@ -429,6 +429,7 @@
"\nEXPRESSION may consist of:\n" \
"\t-follow\t\tDereference symbolic links.\n" \
"\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \
+ "\t-print\t\tPrint (default and assumed).\n" \
USAGE_FIND_TYPE( \
"\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
) USAGE_FIND_PERM( \