Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#468386: zsh-beta: Slow command completion



On Sun, Mar 02, 2008 at 02:45:12PM -0800, Bart Schaefer wrote:
> I should have asked before, but does Debian have "apropos"?

lrwxrwxrwx 1 root root 6 2008-02-08 18:27 /usr/bin/apropos -> whatis

% apropos --version
apropos 2.5.1

% diff -u <(whatis --help) <(apropos --help)
--- /proc/self/fd/11    2008-03-02 18:02:03.840316938 -0500
+++ /proc/self/fd/12    2008-03-02 18:02:03.840316938 -0500
@@ -1,9 +1,11 @@
-Usage: whatis [OPTION...] KEYWORD...
+Usage: apropos [OPTION...] KEYWORD...
 
   -d, --debug                emit debugging messages
   -v, --verbose              print verbose warning messages
+  -e, --exact                search each keyword for exact match
   -r, --regex                interpret each keyword as a regex
   -w, --wildcard             the keyword(s) contain wildcards
+  -a, --and                  require all keywords to match
   -l, --long                 do not trim output to terminal width
   -C, --config-file=FILE     use this user configuration file
   -L, --locale=LOCALE        define the locale for this search
@@ -17,4 +19,6 @@
 Mandatory or optional arguments to long options are also mandatory or optional
 for any corresponding short options.
 
+The --regex option is enabled by default.
+
 Report bugs to cjwatson@xxxxxxxxxxx

> It might be better to test for existence of apropos than to try to
> parse the output of whatis --version.  Or it might not.

No idea.



Messages sorted by: Reverse Date, Date, Thread, Author