Applied patch from David Douthitt to re-add -print option to find.
Closes bug #1144.
This commit is contained in:
parent
c835567914
commit
e0a7f917c2
@ -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( \
|
||||
|
3
find.c
3
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");
|
||||
|
@ -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");
|
||||
|
@ -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( \
|
||||
|
1
usage.h
1
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( \
|
||||
|
Loading…
Reference in New Issue
Block a user