Applied patch from David Douthitt to re-add -print option to find.
authorMark Whitley <markw@lineo.com>
Wed, 28 Mar 2001 22:04:42 +0000 (22:04 -0000)
committerMark Whitley <markw@lineo.com>
Wed, 28 Mar 2001 22:04:42 +0000 (22:04 -0000)
Closes bug #1144.

applets/usage.h
find.c
findutils/find.c
include/usage.h
usage.h

index 8ec0170e22a151446fa69b0d9ad6f6daea279d80..dde3dd14659ea4bbdd4856a2a6c7eeb2003fd756 100644 (file)
        "\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 15e693ab9acd628b50688a15afd1b24283588d62..e814c97b973194370592bfe296e28e0705900214 100644 (file)
--- 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");
index 15e693ab9acd628b50688a15afd1b24283588d62..e814c97b973194370592bfe296e28e0705900214 100644 (file)
@@ -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");
index 8ec0170e22a151446fa69b0d9ad6f6daea279d80..dde3dd14659ea4bbdd4856a2a6c7eeb2003fd756 100644 (file)
        "\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 8ec0170e22a151446fa69b0d9ad6f6daea279d80..dde3dd14659ea4bbdd4856a2a6c7eeb2003fd756 100644 (file)
--- a/usage.h
+++ b/usage.h
        "\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( \