summaryrefslogtreecommitdiffstats
path: root/usr.bin/look/look.c
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/look/look.c
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/look/look.c')
-rw-r--r--usr.bin/look/look.c5
1 files changed, 4 insertions, 1 deletions
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