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.
This commit is contained in:
Eitan Adler 2014-05-11 02:00:48 +00:00
parent 015ac42e4b
commit b245fc98c8
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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;