summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2014-05-11 02:00:48 +0000
committereadler <eadler@FreeBSD.org>2014-05-11 02:00:48 +0000
commit8d682c1043d83d53a932ff301eca75f21eac1634 (patch)
tree51d16992e6fe45ecf65c7cbf8c345ba211888dbe /usr.bin
parent5da6b5db2fa57e638f58570c4ca3931213815d06 (diff)
downloadFreeBSD-src-8d682c1043d83d53a932ff301eca75f21eac1634.zip
FreeBSD-src-8d682c1043d83d53a932ff301eca75f21eac1634.tar.gz
look(1): add compability with other implementations.
On other implementations 'look -a' uses an alternate dictionary. Since we don't have one, just ignore it.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/look/look.14
-rw-r--r--usr.bin/look/look.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/look/look.1 b/usr.bin/look/look.1
index e9498bb..471898f 100644
--- a/usr.bin/look/look.1
+++ b/usr.bin/look/look.1
@@ -103,6 +103,10 @@ in comparisons when the
option was specified.
This was incorrect and the current man page matches the historic
implementation.
+.Pp
+The
+.Fl a
+flag is ignored for compability.
.Sh SEE ALSO
.Xr grep 1 ,
.Xr sort 1
diff --git a/usr.bin/look/look.c b/usr.bin/look/look.c
index e77a216..5f830d0 100644
--- a/usr.bin/look/look.c
+++ b/usr.bin/look/look.c
@@ -102,8 +102,11 @@ main(int argc, char *argv[])
file = _path_words;
termchar = L'\0';
- while ((ch = getopt(argc, argv, "dft:")) != -1)
+ while ((ch = getopt(argc, argv, "adft:")) != -1)
switch(ch) {
+ case 'a':
+ /* COMPATIBILITY */
+ break;
case 'd':
dflag = 1;
break;
OpenPOWER on IntegriCloud