summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Landley2005-10-04 03:34:39 +0000
committerRob Landley2005-10-04 03:34:39 +0000
commit5d3a0e8ed3c7fcb43c9298d43868672ae51a4456 (patch)
treef60cc3927c07020236912ae6cfa9f864a29f6f75 /include
parentd128b7182082052626555331ca46b92e478a0cc5 (diff)
downloadbusybox-5d3a0e8ed3c7fcb43c9298d43868672ae51a4456.zip
busybox-5d3a0e8ed3c7fcb43c9298d43868672ae51a4456.tar.gz
Add find -exec support from Rob Sullivan, and convert CONFIG_ to ENABLE_
while we're in the area.
Diffstat (limited to 'include')
-rw-r--r--include/usage.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/usage.h b/include/usage.h
index 0dbc82a..8428bfd 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -732,6 +732,11 @@
#else
# define USAGE_FIND_INUM(a)
#endif
+#ifdef CONFIG_FEATURE_FIND_EXEC
+# define USAGE_FIND_EXEC(a) a
+#else
+# define USAGE_FIND_EXEC(a)
+#endif
#define find_trivial_usage \
"[PATH...] [EXPRESSION]"
@@ -751,7 +756,11 @@
) USAGE_FIND_NEWER( \
"\n\t-newer FILE\tModified time is more recent than FILE's" \
) USAGE_FIND_INUM( \
- "\n\t-inum N\t\tFile has inode number N")
+ "\n\t-inum N\t\tFile has inode number N" \
+) USAGE_FIND_EXEC( \
+ "\n\t-exec CMD\tExecute CMD with all instances of {} replaced by the" \
+ "\n\t\t\tfiles matching EXPRESSION")
+
#define find_example_usage \
"$ find / -name passwd\n" \
"/etc/passwd\n"