hi.

diff to reduce verbosity in locate(1) usage. before:

$ /usr/bin/locate -Z
locate: unknown option -- Z
usage: locate [-bciS] [-d database] [-l limit] pattern ...
default database: `/var/db/locate.database' or $LOCATE_PATH

after:

$ /usr/obj/usr.bin/locate/locate/locate -Z
locate: unknown option -- Z
usage: locate [-bciS] [-d database] [-l limit] pattern ...

ok?
jmc

Index: usr.bin/locate/locate/locate.c
===================================================================
RCS file: /cvs/src/usr.bin/locate/locate/locate.c,v
retrieving revision 1.33
diff -u -p -r1.33 locate.c
--- usr.bin/locate/locate/locate.c      17 Jan 2019 06:15:44 -0000      1.33
+++ usr.bin/locate/locate/locate.c      22 Jun 2021 12:49:13 -0000
@@ -252,8 +252,7 @@ usage(void)
 {
        (void)fprintf(stderr, "usage: locate [-bciS] [-d database] ");
        (void)fprintf(stderr, "[-l limit] pattern ...\n");
-       (void)fprintf(stderr, "default database: `%s' or $LOCATE_PATH\n",
-           _PATH_FCODES);
+
        exit(1);
 }
 

Reply via email to